summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2017-02-17 22:19:11 -0500
committer GitHub <noreply@github.com>2017-02-17 22:19:11 -0500
commit8a22f1d76a73de88e7172b21ee733cd3b3125e9e (patch)
treea9bd745920867b5d427c2672a674bad89807e9a0
parent7b193346a87e55c8cd57b8f858ab00935eeb4cd2 (diff)
parentacaaa9348676249df848ea38ed9dcfe70b4ac50b (diff)
Merge pull request #2070 from mgarlanger/mm6845_fix
Fix scanout of mc6845
-rw-r--r--src/devices/video/mc6845.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}