[SDL] Overriding video mode selection of SDL_SetVideoMode
Michael Bandsmer
mbandsmer at yahoo.com
Fri Aug 11 19:53:59 PDT 2006
I gather from the lack of replies that what I want to do isn't
possible---at least not easily. How about adding a new function to the
API for 1.3, something like
SDL_Surface *SDL_SetVideoModeCustom(
int physicalScreenWidth,
int physicalScreenHeight,
int displayWidth,
int displayHeight,
int bpp,
Uint32 flags);
This would use displayWidth and displayHeight for the dimensions of a
display window, to be centered on a fullscreen hardware resolution of
physicalScreenWidth by physicalScreenHeight.
Could something like this make it into the next release? That would
really help me get around the problem I described below.
Mike
--- Michael Bandsmer <mbandsmer at yahoo.com> wrote:
> 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