From: merlijn Date: Tue, 30 Aug 2011 09:12:13 +0000 (+0200) Subject: Force windowed mode for OS X Lion, as SDL cannot do this properly yet X-Git-Tag: xonotic-v0.5.0~11^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c09da7571253b80c9a6f96d28759fb131f925939;p=xonotic%2Fxonotic.git Force windowed mode for OS X Lion, as SDL cannot do this properly yet --- 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+