From 98aac99c42d3c5d02c812f9d543cfd42179b3f77 Mon Sep 17 00:00:00 2001 From: zones Date: Sun, 26 Sep 2010 23:31:27 +0900 Subject: [PATCH] macosx: Fixed a display problem. --- macosx/mac-render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/mac-render.cpp b/macosx/mac-render.cpp index 5f3b5125..fcb7df7c 100644 --- a/macosx/mac-render.cpp +++ b/macosx/mac-render.cpp @@ -833,8 +833,8 @@ static void S9xInitWindowMode (void) oldDisplayMode = CGDisplayCurrentMode(gGameDisplayID); mode = CGDisplayBestModeForParameters(gGameDisplayID, depth, width, height, &exactMatch); - - CGDisplaySwitchToMode(gGameDisplayID, mode); + if (exactMatch) + CGDisplaySwitchToMode(gGameDisplayID, mode); #else oldDisplayModeRef = CGDisplayCopyDisplayMode(gGameDisplayID);