Full screen problems

Hi all; I’ve been merrily developing an SDL (1.2.2) game under Linux which
is targeted for Win32, and have been compiling it every couple of days
under Visual C++ just to check I’ve not broken compatibility. All’s been
fine until I tried to ask for a full-screen mode (640x480x16), a request
which I don’t normally compile in because I can’t see my debug windows.
But since, hmmm, a little while ago, all I get under Windows 2000 is a
white screen of the right resolution, a pause of about 7-8s, then it exits
back to Windows with no error that I can see. This doesn’t happen in the
slower, windowed mode, and it never used to happen, I’m sure, but I’d like
to send my demos out in full-screen mode.

Any ideas what might cause this, or indeed, how to go about tracking it
down? There may be an obvious debugging solution but I’m not sure how to
go about it with Visual C++.

cheers,–
Matthew > http://www.soup-kitchen.net/
> ICQ 19482073

Quick question about fullscreen mode–my game runs fine in windowed mode:

screen = SDL_SetVideoMode(640, 480, 16, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RLEACCEL);

If I change the SetVideoMode line to use fullscreen:

screen = SDL_SetVideoMode(640, 480, 16,SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RLEACCEL|SDL_FULLSCREEN);

That’s where I run into problems. Sometimes it will run perfectly fine–but then other times it will switch to fullscreen and remain black. The game just sits there and only updates on a key press–so to get the game to run forward I jam on the spacebar–very weird, it seems as if the event queue is messed up by the switch to fullscreen. Are there issues with Fullscreen in Windows 98? I also made sure that I’m running in my desktop color mode (16bpp).

I’ve been using fullscreen under 98 under many resolutions without
problem… update your video drivers recently?

Kevin Watters wrote:> Quick question about fullscreen mode–my game runs fine in windowed

mode: screen = SDL_SetVideoMode(640, 480, 16,
SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RLEACCEL);If I change the SetVideoMode
line to use fullscreen: screen = SDL_SetVideoMode(640, 480,
16,SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RLEACCEL|SDL_FULLSCREEN);That’s
where I run into problems. Sometimes it will run perfectly fine–but
then other times it will switch to fullscreen and remain black. The
game just sits there and only updates on a key press–so to get the
game to run forward I jam on the spacebar–very weird, it seems as if
the event queue is messed up by the switch to fullscreen. Are there
issues with Fullscreen in Windows 98? I also made sure that I’m
running in my desktop color mode (16bpp).

Hold on a second - SDL_RLEACCEL is not a valid video screen flag (see
http://sdldoc.csn.ul.ie/sdlsetvideomode.php ). Try fullscreen without
it?

Kevin Watters wrote:> Quick question about fullscreen mode–my game runs fine in windowed

mode: screen = SDL_SetVideoMode(640, 480, 16,
SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RLEACCEL);If I change the SetVideoMode
line to use fullscreen: screen = SDL_SetVideoMode(640, 480,
16,SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RLEACCEL|SDL_FULLSCREEN);That’s
where I run into problems. Sometimes it will run perfectly fine–but
then other times it will switch to fullscreen and remain black. The
game just sits there and only updates on a key press–so to get the
game to run forward I jam on the spacebar–very weird, it seems as if
the event queue is messed up by the switch to fullscreen. Are there
issues with Fullscreen in Windows 98? I also made sure that I’m
running in my desktop color mode (16bpp).