From 57aaa4f9a68826c3d3f0ef8d9270885513ca37ec Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Wed, 19 Feb 2014 02:32:13 +0000 Subject: [PATCH] Pitch reversed, Dragon Buster contradicts with it --- src/emu/video/upd7220.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/emu/video/upd7220.c b/src/emu/video/upd7220.c index fa793d066f6..27c630bc381 100644 --- a/src/emu/video/upd7220.c +++ b/src/emu/video/upd7220.c @@ -1609,8 +1609,9 @@ void upd7220_device::update_graphics(bitmap_rgb32 &bitmap, const rectangle &clip { /* TODO: again correct? Quarth (PC-98xx) doesn't seem to use pitch here and it definitely wants bsy to be /2 to make scrolling to work. - Xevious (PC-98xx) wants the pitch to be fixed at 80, and wants bsy to be /1 */ - addr = ((sad << 1) & 0x3ffff) + (y * 80); + Xevious (PC-98xx) wants the pitch to be fixed at 80, and wants bsy to be /1 + Dragon Buster (PC-98xx) contradicts with Xevious with regards of the pitch tho ... */ + addr = ((sad << 1) & 0x3ffff) + (y * m_pitch * 2); if (m_display_cb) draw_graphics_line(bitmap, addr, y + bsy/((m_pitch == 40)+1), wd);