From a7eb357751189ed17a54a037990dd2bb51e99099 Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Tue, 18 Feb 2014 04:21:17 +0000 Subject: [PATCH] PC-9801 / upd7220: Fixed Quarth video paging [Angelo Salese] --- src/emu/video/upd7220.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emu/video/upd7220.c b/src/emu/video/upd7220.c index 9c0e6e2b59f..b4968b8ba97 100644 --- a/src/emu/video/upd7220.c +++ b/src/emu/video/upd7220.c @@ -1600,9 +1600,9 @@ void upd7220_device::update_graphics(bitmap_rgb32 &bitmap, const rectangle &clip if (im || force_bitmap) { - get_graphics_partition(area, &sad, &len, &im, &wd); + //get_graphics_partition(area, &sad, &len, &im, &wd); - if(area >= 2) // TODO: correct? + if(area >= 3) // TODO: correct? Quarth (PC-98xx) definitely draws with area 2. break; for (y = 0; y < len; y++) @@ -1610,7 +1610,7 @@ void upd7220_device::update_graphics(bitmap_rgb32 &bitmap, const rectangle &clip addr = ((sad << 1) & 0x3ffff) + (y * m_pitch * 2); if (m_display_cb) - draw_graphics_line(bitmap, addr, y + bsy, wd); + draw_graphics_line(bitmap, addr, y + bsy/2, wd); } } else