From c09da7571253b80c9a6f96d28759fb131f925939 Mon Sep 17 00:00:00 2001 From: merlijn Date: Tue, 30 Aug 2011 11:12:13 +0200 Subject: [PATCH] Force windowed mode for OS X Lion, as SDL cannot do this properly yet --- .../buildfiles/osx/Xonotic.app/Contents/MacOS/xonotic-osx-sdl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/xonotic-osx-sdl b/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/xonotic-osx-sdl index 6a204f0e..30f40a95 100755 --- a/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/xonotic-osx-sdl +++ b/misc/buildfiles/osx/Xonotic.app/Contents/MacOS/xonotic-osx-sdl @@ -6,6 +6,10 @@ export DYLD_LIBRARY_PATH="${0%/*}" set -- "$0"-bin "$@" -notexturenonpoweroftwo case "`sw_vers -productVersion`" in + # OSX Lion has problems with SDL and running fullscreen, hence we force windowed mode + 10.7.[0-9]*) + exec "$@" +vid_fullscreen 0 + ;; # shell pattern for "10.6 and higher" 10.[6-9]*|10.[1-5][0-9]*|1[1-9]*|[2-9]*) # no workaround needed on 10.6+ -- 2.39.2