SDL and 8-bit fullscreen in OS X

I have a problem that may be related to what Neo_Darkboy just posted (http://forums.libsdl.org/viewtopic.php?t=7034), but it is different:
I made a tweaked port of Rise of the Triad for Mac OS X (http://www.dr-lex.be/software/rott.html) long ago, based on the icculus 1.0 release. This port worked well until the upgrade to Mac OS X 10.5. Since then, the screen is black in full screen mode.
The problem seems to be that Apple dropped support for 8-bit (256 colors) mode for certain graphics cards since 10.5. More specifically it seems that ATI cards lack the 8-bit mode, while Nvidia cards still work.

The game still works in windowed mode, because SDL is forced to render the window in the current video bit depth. I was wondering, is it possible to disable the bit depth switch when entering full screen, or force SDL to use a specific bit depth?

You can specify the depth in SDL_SetVideoMode()

SDL 1.3 is considerably more robust on Mac OS X too, so you might want to
try that.

Cheers!On Fri, Mar 4, 2011 at 3:52 AM, DrLex <doctor.lex at gmail.com> wrote:

I have a problem that may be related to what Neo_Darkboy just postedhttp://forums.libsdl.org/viewtopic.php?t=7034,
but it is different:
I made a tweaked port of Rise of the Triad for Mac OS Xhttp://www.dr-lex.be/software/rott.htmllong ago, based on the icculus 1.0 release. This port worked well until the
upgrade to Mac OS X 10.5. Since then, the screen is black in full screen
mode.
The problem seems to be that Apple dropped support for 8-bit (256 colors)
mode for certain graphics cards since 10.5. More specifically it seems that
ATI cards lack the 8-bit mode, while Nvidia cards still work.

The game still works in windowed mode, because SDL is forced to render the
window in the current video bit depth. I was wondering, is it possible to
disable the bit depth switch when entering full screen, or force SDL to use
a specific bit depth?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and CEO, Galaxy Gameworks