From acaaa9348676249df848ea38ed9dcfe70b4ac50b Mon Sep 17 00:00:00 2001 From: Mark Garlanger Date: Fri, 17 Feb 2017 20:36:45 -0600 Subject: [PATCH] Fix scanout of mc6845 --- src/devices/video/mc6845.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/video/mc6845.cpp b/src/devices/video/mc6845.cpp index 94578bda3c6..dcab1963fbe 100644 --- a/src/devices/video/mc6845.cpp +++ b/src/devices/video/mc6845.cpp @@ -988,7 +988,7 @@ uint32_t mc6845_device::screen_update(screen_device &screen, bitmap_rgb32 &bitma } /* for each row in the visible region */ - for (uint16_t y = cliprect.min_y; y <= cliprect.max_y; y++) + for (uint16_t y = cliprect.min_y; y <= cliprect.max_y && y <= m_max_visible_y; y++) { this->draw_scanline(y, bitmap, cliprect); }