Hello,
Does anyone know of any problems or success running full screen
with Mac OS X?
My program which I’m trying to run full screen runs either windowed, or
fullscreen with the menu bar and dock on top. The line that sets the
video mode is:
screen = SDL_SetVideoMode(1152, 768, 24, SDL_FULLSCREEN |
SDL_HWSURFACE | SDL_DOUBLEBUF);
the odd resolution is due to the program being ran on a PowerBook G4.
I’ve tried changing the flags sent to SetVideoMode(), and still no luck.
I’ve also tried compiling using Project Builder (OS X’s IDE) and cc from
the terminal.
If you have any ideas, or thoughts, or perhaps a fix, thanks in advance,
Jay
@Jayson_Baird
My program which I’m trying to run full screen runs either windowed, or
fullscreen with the menu bar and dock on top. The line that sets the
video mode is:
screen = SDL_SetVideoMode(1152, 768, 24, SDL_FULLSCREEN |
SDL_HWSURFACE | SDL_DOUBLEBUF);
the odd resolution is due to the program being ran on a PowerBook G4.
24bpp is not a valid bit depth. We should perhaps use a shadow surface in
this case…
You can use 8,16,or 32 instead for the moment. Keep in mind that in OS X
and 9, 32 bit colors are stored as ARGB-8-8-8-8, which you should see from
looking at the surface’s flags.
Also be warned that the fullscreen mode disables command-tab and covers
all other windows, so if you hang in fullscreen mode you might have to
ssh to your machine to kill the process.
I’ve also tried compiling using Project Builder (OS X’s IDE) and cc from
the terminal.
FYI, ProjectBuilder uses cc (a modified version of gcc 2.96) behind your
back.
-DarrellOn Tue, 9 Oct 2001, Jayson Baird wrote: