[SDL] osx fullscreen sw vs hw

jon jon.rafkind at gmail.com
Tue Dec 21 12:18:00 PST 2010


To set the fullscreen mode in my game I call

screen = SDL_SetVideoMode(width, height, SCREEN_DEPTH, SDL_HWSURFACE |
SDL_DOUBLEBUF | SDL_FULLSCREEN);

whereas for windowed mode I call

screen = SDL_SetVideoMode(width, height, SCREEN_DEPTH, SDL_SWSURFACE |
SDL_RESIZABLE);

On windows and linux both fullscreen and windowed mode work fine, but on
osx 10.6 only windowed mode looks fine. In fullscreen mode I get weird
colors: http://www.cs.utah.edu/~rafkind/tmp/paintown/ss.png

Is SDL_SWSURFACE recommended in fullscreen mode? I'm using SDL 1.2.14.



More information about the SDL mailing list