mirror of
https://github.com/holub/mame
synced 2025-05-23 14:19:01 +03:00
Fix shadfrce assertions.
This commit is contained in:
parent
9ce87edb3f
commit
78f5d6e9ea
@ -287,7 +287,8 @@ static TIMER_DEVICE_CALLBACK( shadfrce_scanline )
|
|||||||
if (scanline == raster_scanline)
|
if (scanline == raster_scanline)
|
||||||
{
|
{
|
||||||
raster_scanline = (raster_scanline + 1) % 240;
|
raster_scanline = (raster_scanline + 1) % 240;
|
||||||
video_screen_update_partial(timer->machine->primary_screen, raster_scanline - 1);
|
if (raster_scanline > 0)
|
||||||
|
video_screen_update_partial(timer->machine->primary_screen, raster_scanline - 1);
|
||||||
cpu_set_input_line(timer->machine->cpu[0], 1, ASSERT_LINE);
|
cpu_set_input_line(timer->machine->cpu[0], 1, ASSERT_LINE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -297,7 +298,8 @@ static TIMER_DEVICE_CALLBACK( shadfrce_scanline )
|
|||||||
{
|
{
|
||||||
if (scanline % 16 == 0)
|
if (scanline % 16 == 0)
|
||||||
{
|
{
|
||||||
video_screen_update_partial(timer->machine->primary_screen, scanline - 1);
|
if (scanline > 0)
|
||||||
|
video_screen_update_partial(timer->machine->primary_screen, scanline - 1);
|
||||||
cpu_set_input_line(timer->machine->cpu[0], 2, ASSERT_LINE);
|
cpu_set_input_line(timer->machine->cpu[0], 2, ASSERT_LINE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user