Does fullscreen mode work in windows?

I have a small beginning program in SDL and I was wondering if fullscreen
mode works in WIN32 because the program works fine until I put in the
SDL_FULLSCREEN flag. I have included it in case it just is bad programming
and if so please help me, I’m new to SDL. I am working with dev C++
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL te65.ZIP
Type: application/zip
Size: 1958 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20011215/8a4d4111/attachment.zip

a few things:

  1. get rid of the gotos
  2. your display surface is not palettized, and you are trying to set a
    palette for it
  3. get rid of the gotos
  4. you might want to check available video modes before trying to set a
    fullscreen mode. use SDL_GetVideoInfo to get the “best” pixel format, and
    then use SDL_ListModes to get the modes for that format
  5. get rid of the gotos
  6. you might want to convert the bitmap surface to the display format.
  7. get rid of the gotos
  8. SDL_DOUBLEBUF is only valid with SDL_HWSURFACE>From: Compwiz2000 at aol.com

Reply-To: sdl at libsdl.org
To: sdl at libsdl.org
Subject: [SDL] Does fullscreen mode work in windows?
Date: Sat, 15 Dec 2001 10:52:26 EST

I have a small beginning program in SDL and I was wondering if fullscreen
mode works in WIN32 because the program works fine until I put in the
SDL_FULLSCREEN flag. I have included it in case it just is bad programming
and if so please help me, I’m new to SDL. I am working with dev C++
<< SDLte65.ZIP >>


Chat with friends online, try MSN Messenger: http://messenger.msn.com

At 10.52 15/12/2001 -0500, you wrote:

I have a small beginning program in SDL and I was wondering if fullscreen
mode works in WIN32 because the program works fine until I put in the
SDL_FULLSCREEN flag. I have included it in case it just is bad programming
and if so please help me, I’m new to SDL. I am working with dev C++

If you are working with a double buffering display you must perform
SDL_Flip() once you have done with your drawing operations.

BTW nice way to do an event handling loop :slight_smile: it remembers me my first
programs on C64 17-18 years ago :slight_smile:

10 print "Bye, Gabry"
20 goto 10

:slight_smile: