[SDL] problems compiling VC6 project

Andy Livingstone andyliv at connectfree.co.uk
Sun Jul 14 07:38:01 PDT 2002


I've updated my video driver and it fixed the problem that was causing to
not being able to switch back the the previous desktop resolution. Should be
added in some troubleshooting docs...


----- Original Message -----
From: "John Popplewell" <john at johnnypops.demon.co.uk>
To: <sdl at libsdl.org>
Sent: Monday, July 01, 2002 3:10 AM
Subject: Re: [SDL] In Win32, can't return to the original resolution after a
SDL_Quit()


> Hi,
>
> > ... it doesn't switch back to the previous, normal desktop resolution.
> > Is there any way to fix that? ...
>
> It should do.
>
> The following minimalist program works for me on Win98SE with
> my desktop at 1280x1024x16 and 1280x1024x32 (various other
> combinations also work OK),
>
> cheers,
> John.
> PS Press a key to exit!
>
>
> #include "sdl.h"
>
> int main(int argc, char **argv)
> {
>     SDL_Event event;
>
>     SDL_Init(SDL_INIT_VIDEO);
>     SDL_SetVideoMode(1024, 768, 16, SDL_OPENGL | SDL_FULLSCREEN );
>
>     while(1) {
>         SDL_WaitEvent(&event);
>         if (event.type == SDL_KEYDOWN)
>             break;
>     }
>
>     SDL_Quit();
>     return 0;
> }
>
>
>
> ----- Original Message -----
> From: "Robert Goulet" <moebious at videotron.ca>
> To: <sdl at libsdl.org>
> Sent: Monday, July 01, 2002 5:03 AM
> Subject: [SDL] In Win32, can't return to the original resolution after a
> SDL_Quit()
>
>
> For some reason, under Win32, when I use fullscreen, and then end the
> application (with an appropiate SDL_Quit() call), it doesn't switch
> back to the previous, normal desktop resolution. Is there any way to fix
> that?
> The exact call when I set the video mode is:
> SDL_SetVideoMode(1024, 768, mVideoInfo->vfmt->BitsPerPixel, SDL_OPENGL |
> SDL_FULLSCREEN )
>
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl





More information about the SDL mailing list