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:
parent
cd57af7795
commit
0f8f30f639
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue