mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-11 13:29:30 +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:
parent
cd57af7795
commit
0f8f30f639
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user