From aaf431c92ebc037e42faf7c7e528aa58cdff990b Mon Sep 17 00:00:00 2001 From: mariuszw1 Date: Fri, 3 Jul 2009 20:43:41 +0000 Subject: [PATCH] Better fix for Amiga AGA ddf_stop_pixel, to avoid breaking Amiga 1200 startup screen. [Mariusz Wojcieszek] --- src/mame/video/amigaaga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/video/amigaaga.c b/src/mame/video/amigaaga.c index a185ac2176c..db1fde49ab4 100644 --- a/src/mame/video/amigaaga.c +++ b/src/mame/video/amigaaga.c @@ -845,7 +845,7 @@ void amiga_aga_render_scanline(running_machine *machine, bitmap_t *bitmap, int s /* compute the pixel fetch parameters */ ddf_start_pixel = ( CUSTOM_REG(REG_DDFSTRT) & 0xfc ) * 2 + (hires ? 9 : 17); - ddf_stop_pixel = ( CUSTOM_REG(REG_DDFSTOP) & 0xfc ) * 2 + (hires ? (9 + defbitoffs - 16) : (17 + defbitoffs)); + ddf_stop_pixel = ( CUSTOM_REG(REG_DDFSTOP) & 0xfc ) * 2 + (hires ? (9 + defbitoffs - ((defbitoffs == 31) ? 16 : 0)) : (17 + defbitoffs)); if ( ( CUSTOM_REG(REG_DDFSTRT) ^ CUSTOM_REG(REG_DDFSTOP) ) & 0x04 ) ddf_stop_pixel += 8;