[SDL] Re: [PATCH] Function to get desktop resolution
troydhanson at gmail.com
Fri Jan 28 20:50:02 PST 2005
Bob Pendleton <bob <at> pendleton.com> writes:
> 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
Even if the ability to pass width,height as 0,0 is implemented, I agree with
Bob that it'd be useful to have the actual screen resolution added to the video
info struct. In my case, I want to create a window whose size is proportional
to, but smaller than, the screen. So I need to know the real screen resolution.
Jon's post was timely- I was just looking for a way to get the screen
resolution in the SDL docs today, before finding this thread. Thanks Jon.
More information about the SDL