[SDL] Overriding video mode selection of SDL_SetVideoMode
Michael Bandsmer
mbandsmer at yahoo.com
Fri Aug 11 23:53:02 PDT 2006
I'm not sure whether using a shadow surface would constrain the mouse
cursor to stay within the display window, which is something I also
need. It would be nice to use SDL's built-in mouse constraining
feature rather than re-invent the wheel.
--- Torsten Giebl <wizard at syntheticsw.com> wrote:
> Hello !
>
>
> > 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.
>
> You can use a Shadow Surface and blit to that all your stuff,
> then blit this centered to the Back Buffer and use SDL_Flip or
> SDL_UpdateRects or whatever.
>
>
> CU
>
__________________________________________________
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