mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-08-09 03:25:04 +00:00
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:
@@ -1478,10 +1478,6 @@ static void do_toggle_fullscreen(void)
|
||||
while (!thread_stop_ack) ;
|
||||
#endif
|
||||
|
||||
// save the mouse position
|
||||
int x, y;
|
||||
SDL_GetMouseState(&x, &y);
|
||||
|
||||
// Apply fullscreen
|
||||
if (sdl_window) {
|
||||
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
|
||||
ADBKeyUp(0x36);
|
||||
|
||||
// restore the mouse position
|
||||
SDL_WarpMouseGlobal(x, y);
|
||||
|
||||
// resume redraw thread
|
||||
toggle_fullscreen = false;
|
||||
|
Reference in New Issue
Block a user