Basilisk II, bug-fix: switching to fullscreen, via Ctrl+Enter, on a non-primary host display, could cause mouse cursor to jump to a different display

This bug was observed occurring on an OSX 10.12 host.
This commit is contained in:
David Ludwig 2017-09-02 15:36:56 -04:00
parent cd57af7795
commit 0f8f30f639

View File

@ -1478,10 +1478,6 @@ static void do_toggle_fullscreen(void)
while (!thread_stop_ack) ; while (!thread_stop_ack) ;
#endif #endif
// save the mouse position
int x, y;
SDL_GetMouseState(&x, &y);
// Apply fullscreen // Apply fullscreen
if (sdl_window) { if (sdl_window) {
if (display_type == DISPLAY_SCREEN) { if (display_type == DISPLAY_SCREEN) {
@ -1507,9 +1503,6 @@ static void do_toggle_fullscreen(void)
// while SetVideoMode is happening, control key up may be missed // while SetVideoMode is happening, control key up may be missed
ADBKeyUp(0x36); ADBKeyUp(0x36);
// restore the mouse position
SDL_WarpMouseGlobal(x, y);
// resume redraw thread // resume redraw thread
toggle_fullscreen = false; toggle_fullscreen = false;