Problems with win32 fullscreen

I’m having problems when I execute my program under
win32 in fullscreen mode. In windowed mode it works
well but when i change the library to dx5 it just
opens the program and exits.
I’m using a snapshot of version 0.9.13 of SDL dated
June 24th.

Thanks

  |||
 (- -)

-oOOo(_)oOOo----------------------------
|“Why use Windows since there is a door.”|
| |
| @Gorka |
| http://web.jet.es/~olsago/ |
| http://fly.to/luzluciernaga |----------------------------------------

I’m having problems when I execute my program under
win32 in fullscreen mode. In windowed mode it works
well but when i change the library to dx5 it just
opens the program and exits.

Use print statements to a file to find out how far it gets before it
crashes. Here is my typical debug statement:

#define NOTE(X) { FILE *foo = fopen(“C:\debug.txt”, “a”); fprintf(foo, “%s\n”, X); fclose(foo); }

Then in the code…

NOTE(“Set video mode”);
NOTE(“blah blah”);

The most common cause of crashes in fullscreen mode is not locking the
screen surface when you need to. Use the SDL_MUSTLOCK() macro to determine
whether or not you need to lock a surface before accessing it.

Go ahead and reply to me personally if you have found a bug in SDL.

Thanks

No problem. :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec