[SDL] how can i optain current desktop size?

Ryan C. Gordon icculus at clutteredmind.org
Mon Aug 27 09:39:01 PDT 2001


> i tried SDL_syswm.h but i cant find what's what.
> X11 things are too difficult to me. i wish there are
> somewhat smarter way..

Hhmm...you probably can't through SDL.

You can use SDL_ListModes(SDL_FULLSCREEN), and see what comes back.
Presumably the largest resolution isn't "faked" by SDL, but that's just
conjecture on my part, and maybe the user is actually using a smaller
resolution than that.

--ryan.






More information about the SDL mailing list