mirror of https://github.com/snes9xgit/snes9x.git
macosx: Fixed a display problem.
This commit is contained in:
parent
31f45619a5
commit
98aac99c42
|
@ -833,7 +833,7 @@ static void S9xInitWindowMode (void)
|
||||||
oldDisplayMode = CGDisplayCurrentMode(gGameDisplayID);
|
oldDisplayMode = CGDisplayCurrentMode(gGameDisplayID);
|
||||||
|
|
||||||
mode = CGDisplayBestModeForParameters(gGameDisplayID, depth, width, height, &exactMatch);
|
mode = CGDisplayBestModeForParameters(gGameDisplayID, depth, width, height, &exactMatch);
|
||||||
|
if (exactMatch)
|
||||||
CGDisplaySwitchToMode(gGameDisplayID, mode);
|
CGDisplaySwitchToMode(gGameDisplayID, mode);
|
||||||
#else
|
#else
|
||||||
oldDisplayModeRef = CGDisplayCopyDisplayMode(gGameDisplayID);
|
oldDisplayModeRef = CGDisplayCopyDisplayMode(gGameDisplayID);
|
||||||
|
|
Loading…
Reference in New Issue