Log In  

Anyone who upgraded to OSX Lion and plays games made with SDL might have noticed a lot of programs crashing all over the place recently. Including mine. The problem is with SDL's fullscreen support using code that is no longer supported in Lion.

It looks like there's a new stable version release on the horizon to address this, but my solution was just to use an opengl surface instead:
SDL_SetVideoMode(0, 0, 32, SDL_FULLSCREEN | SDL_OPENGL);
And then update a single quad texture using glTexSubImage2D each frame. It seems to be reasonably fast on modern macs.

If you're a registered user, you can get the Lion-compatible versions here:
https://www.lexaloffle.com/games.php?page=my

Another minor feature in these updates is the ability to get a larger window in windowed mode. You'll have to manually change the configuration file to do this though. Look in ~/Library/Application Support/Game Name/config.txt (Mac OS X) or C:\Program Files\Game Name\config.txt (Windows) and change large_window to 1. This will give you a window scaled up to 960x720 for all games.

P#1520 2011-10-01 13:13 ( Edited 2011-11-10 03:13)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 11:10:57 | 0.004s | Q:8