mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
Fix video counter reporting on Williams games (should stay at
maximum value until reset). [Sean Riddle]
This commit is contained in:
parent
9e88a602ac
commit
86769524fd
@ -352,13 +352,19 @@ WRITE8_MEMBER(williams_state::williams2_fg_select_w)
|
||||
|
||||
READ8_MEMBER(williams_state::williams_video_counter_r)
|
||||
{
|
||||
return machine().primary_screen->vpos() & 0xfc;
|
||||
if (machine().primary_screen->vpos() < 0x100)
|
||||
return machine().primary_screen->vpos() & 0xfc;
|
||||
else
|
||||
return 0xfc;
|
||||
}
|
||||
|
||||
|
||||
READ8_MEMBER(williams_state::williams2_video_counter_r)
|
||||
{
|
||||
return machine().primary_screen->vpos();
|
||||
if (machine().primary_screen->vpos() < 0x100)
|
||||
return machine().primary_screen->vpos() & 0xfc;
|
||||
else
|
||||
return 0xfc;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user