Fixed invalid partial update calls on negative scanlines.

This commit is contained in:
Aaron Giles 2012-09-10 06:34:53 +00:00
parent 3163aee249
commit 56dd6a82ff

View File

@ -2971,7 +2971,9 @@ TIMER_DEVICE_CALLBACK( megadriv_scanline_timer_callback_alt_timing )
vdp->vdp_handle_scanline_callback(timer.machine(), param);
timer.machine().primary_screen->update_partial(timer.machine().primary_screen->vpos()-1);
int vpos = timer.machine().primary_screen->vpos();
if (vpos > 0)
timer.machine().primary_screen->update_partial(vpos-1);
}
}