[SDL] maximum width and height

Torsten Giebl wizard at syntheticsw.com
Sat Oct 27 15:00:22 PDT 2007


Hello !


> Is there any way to get SDL to tell you the maximum width and height
> that you can make a window?  I want to know the width and height to
> pass to SDL_SetVideoMode() when I start an app or go to fullscreen
> mode with SDL_WM_ToggleFullScreen().


Use SDL_SetVideoMode with Width=0 and Height=0.

Look at this :

http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSetVideoMode


CU


More information about the SDL mailing list