[SDL] [PATCH] Function to get desktop resolution

Bob Pendleton bob at pendleton.com
Fri Jan 28 14:18:30 PST 2005

On Fri, 2005-01-28 at 16:33 -0500, Simon Roby wrote:
> 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
> function.
> My 2 cents...

I'll second that. It makes sense. I would also like to see the video
info struct extended to include the information.

		Bob Pendleton

> 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.
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl

More information about the SDL mailing list