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+