comparison render_sdl.c @ 1198:8715174e9366

Adjust mouse cursor in absolute mode/menu to account for presence of top border
author Michael Pavone <pavone@retrodev.com>
date Tue, 24 Jan 2017 23:17:24 -0800
parents 1ad0ec7e3939
children a6ae693974e0
comparison
equal deleted inserted replaced
1197:9bc78bd89567 1198:8715174e9366
833 printf("Failed to find removed joystick with instance ID: %d\n", index); 833 printf("Failed to find removed joystick with instance ID: %d\n", index);
834 } 834 }
835 break; 835 break;
836 } 836 }
837 case SDL_MOUSEMOTION: 837 case SDL_MOUSEMOTION:
838 handle_mouse_moved(event->motion.which, event->motion.x, event->motion.y, event->motion.xrel, event->motion.yrel); 838 handle_mouse_moved(event->motion.which, event->motion.x, event->motion.y + overscan_top[video_standard], event->motion.xrel, event->motion.yrel);
839 break; 839 break;
840 case SDL_MOUSEBUTTONDOWN: 840 case SDL_MOUSEBUTTONDOWN:
841 handle_mousedown(event->button.which, event->button.button); 841 handle_mousedown(event->button.which, event->button.button);
842 break; 842 break;
843 case SDL_MOUSEBUTTONUP: 843 case SDL_MOUSEBUTTONUP: