mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 10:17:54 +00:00
cocoa: Don't overwrite the desktop mode when changing the fullscreen mode
Changing the mode triggers a display reconfiguration event, which will overwrite the desktop mode with the set fullscreen mode, preventing proper restoration when leaving fullscreen. Don't overwrite the desktop mode if the reconfiguration is due to a fullscreen mode switch.
This commit is contained in:
parent
078d737a27
commit
b69201daeb
1 changed files with 1 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ static void Cocoa_DisplayReconfigurationCallback(CGDirectDisplayID displayid, CG
|
|||
}
|
||||
}
|
||||
|
||||
if (flags & kCGDisplaySetModeFlag) {
|
||||
if ((flags & kCGDisplaySetModeFlag) && !_this->setting_display_mode) {
|
||||
if (display) {
|
||||
CGDisplayModeRef moderef = CGDisplayCopyDisplayMode(displayid);
|
||||
if (moderef) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue