I'm working on a game in B+, it can be run either in a window or in fullscreen mode. If I try to run my B+ game on a computer that has 8bpp (256 colors) on the desktop, I get a directdraw error (Unrecognized DirectDraw pixel format: bpp=8 yadda yadda) and the app quits. I want to capture this error, look for a fullscreen mode with more than 8bpp and automaticly switch to that, it would be so much nicer than just giving the user a weird message. Is this possible? The error message pops up before my code is touched at all, so it doesn't seem like there's an awful lot for me to do. Any ideas are appreciated. It's of course not vital for the game, but it would be a nice addition.
-- Martin
|