[SDL] Overriding video mode selection of SDL_SetVideoMode

Michael Bandsmer mbandsmer at yahoo.com
Wed Aug 9 20:48:59 PDT 2006


Hi, I'm new to SDL so forgive me if I'm missing something obvious.

What I want to do is set a full-screen video mode with a
smaller-than-fullscreen display window centered on a black
background---just like SDL_SetVideoMode currently does---except that I
want to override SDL's choice of the "next higher resolution".  This is
because SDL invariably chooses a 1280x960 resolution for my particular
display window, whereas I want to be using 1280x1024, because this is
the only resolution (on my LCD) in which pixels have the right aspect
ratio and don't blur.  Is there a simple way to do this?

Mike


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the SDL mailing list