[SDL] [PATCH] Function to get desktop resolution

Simon Roby simon.roby at gmail.com
Fri Jan 28 13:33:53 PST 2005

IMHO it would be better to add support in SDL_SetVideoMode() to select
the current desktop resolution by specifying zero in the first and
second arguments. That solution would be logical since you can achieve
the same with the bpp (ie. setting it to zero selects the current
desktop depth), and it would avoid polluting the API with a new

My 2 cents...

On Fri, 28 Jan 2005 21:11:36 +0000, Jon Colverson <sdl at vcxz.co.uk> wrote:
> The rationale for the function is that I want a way of picking a
> reasonable default fullscreen resolution without having to ask the user.
> Using SDL_ListModes() and picking the highest resolution isn't
> appropriate because, for example, LCD users will presumably prefer the
> native resolution of the monitor.

More information about the SDL mailing list