mirror of
https://github.com/holub/mame
synced 2025-06-03 19:36:26 +03:00
From: hoge hoge
Date: Sat, 1 Aug 2009 13:07:41 -0700 To: submit@mamedev.org<submit@mamedev.org> Subject: sbrkout paddle fix Hi, Attached diff for 0133 is a simple fix to mametesters bug 02645, the paddle now correctly has a range of 00 to FF. hap
This commit is contained in:
parent
9a5d3dfe0e
commit
30df0d4d1c
@ -126,7 +126,7 @@ static TIMER_CALLBACK( scanline_callback )
|
||||
if (scanline == video_screen_get_visible_area(machine->primary_screen)->max_y + 1)
|
||||
{
|
||||
UINT8 potvalue = input_port_read(machine, "PADDLE");
|
||||
timer_adjust_oneshot(pot_timer, video_screen_get_time_until_pos(machine->primary_screen, 72 + (potvalue / 2), (potvalue % 2) * 128), 0);
|
||||
timer_adjust_oneshot(pot_timer, video_screen_get_time_until_pos(machine->primary_screen, 56 + (potvalue / 2), (potvalue % 2) * 128), 0);
|
||||
}
|
||||
|
||||
/* call us back in 4 scanlines */
|
||||
|
Loading…
Reference in New Issue
Block a user