diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-01-24 23:17:24 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-01-24 23:17:24 -0800 |
commit | 94e890319523db3be5972c353e18cc328749e59a (patch) | |
tree | afc350666ea75d18e855d2f38977f2260921c172 | |
parent | a9ebebf22235360a452792d610fc086f8890f854 (diff) |
Adjust mouse cursor in absolute mode/menu to account for presence of top border
-rw-r--r-- | menu.s68 | 2 | ||||
-rwxr-xr-x | render_sdl.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -417,7 +417,7 @@ handle_mouse: move.b d2, (-5, a2, d4.w) lea (0, a2, d4.w), a2 move.l a2, mouse_sprite.w - move.l #$01000500, (a2)+ + move.l #$00EA0500, (a2)+ move.w #$8083, (a2) move.w #$100, mouse_x.w addq #1, d2 diff --git a/render_sdl.c b/render_sdl.c index a594ad8..12a34a7 100755 --- a/render_sdl.c +++ b/render_sdl.c @@ -835,7 +835,7 @@ static int32_t handle_event(SDL_Event *event) break; } case SDL_MOUSEMOTION: - handle_mouse_moved(event->motion.which, event->motion.x, event->motion.y, event->motion.xrel, event->motion.yrel); + handle_mouse_moved(event->motion.which, event->motion.x, event->motion.y + overscan_top[video_standard], event->motion.xrel, event->motion.yrel); break; case SDL_MOUSEBUTTONDOWN: handle_mousedown(event->button.which, event->button.button); |