diff options
author | cracyc <cracyc@users.noreply.github.com> | 2016-07-24 19:54:19 -0500 |
---|---|---|
committer | cracyc <cracyc@users.noreply.github.com> | 2016-07-24 19:54:19 -0500 |
commit | 8c22a3d31e4f4e10aacd367199c0f96457eb68f7 (patch) | |
tree | 11a4cfe7f2612e5caf6a3146f78992ac2955a04a | |
parent | f0dad1a2584c97fc8927fc5e9060dbd0489dfe2d (diff) |
tvi990: WIP (nw)
-rw-r--r-- | src/mame/drivers/tv990.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/drivers/tv990.cpp b/src/mame/drivers/tv990.cpp index 6e5da4f3a23..17b39e57524 100644 --- a/src/mame/drivers/tv990.cpp +++ b/src/mame/drivers/tv990.cpp @@ -173,6 +173,7 @@ UINT32 tv990_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, c UINT8 *fontptr; int miny = cliprect.min_y / 16; int maxy = cliprect.max_y / 16; + bitmap.fill(0, cliprect); for (y = miny; y <= maxy; y++) { @@ -187,9 +188,9 @@ UINT32 tv990_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, c minx = tvi1111_regs[i + 0x30] >> 8; maxx = tvi1111_regs[i + 0x30] & 0xff; - if(maxx > 79) - maxx = 79; - for (x = minx; x <= maxx; x++) + if(maxx > 80) + maxx = 80; + for (x = minx; x < maxx; x++) { UINT8 chr = curchar[x - minx] >> 8; UINT8 attr = curchar[x - minx] & 0xff; |