[SDL] moving screen when u change resolution

Bob Pendleton bob at pendleton.com
Mon Jan 31 07:35:13 PST 2005


On Sat, 2005-01-29 at 00:40 +0100, David Olofson wrote:
> On Saturday 29 January 2005 00.32, Jon Colverson wrote:
> [...]
> > As mentioned at:
> > http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fenvvars
> > neither users nor applications should be relying on the environment 
> > variables; they aren't part of the API.
> 
> Good point. Changing this stuff might break some applications - but 
> "they had it coming..."
> 
> 
> > SDL_VIDEO_CENTERED looks like the only variable which provides 
> > potentially portable functionality, and as such, I think it would be
> > a good candidate for being added to the C API (presumably as a flag
> > for SDL_SetVideoMode(), which I believe could be added without
> > breaking binary compatability in any direction).
> 
> ...if we can squeeze in another flag in those 32 bits. :-)
> 
> Anyway, ++votes for SDL_VIDEO_CENTERED as a flag to 
> SDL_SetVideoMode().

Yes, I'll vote for that... But, you have to make sure that it doesn't
change the current behavior in anyway. 

If we keep adding flags we will need to move to a 64 bit int some day or
change to a vector based flag passing technique, which I don't like at
all.

		Bob Pendleton

> 
> 
> //David Olofson - Programmer, Composer, Open Source Advocate
> 
> .- Audiality -----------------------------------------------.
> |  Free/Open Source audio engine for games and multimedia.  |
> | MIDI, modular synthesis, real time effects, scripting,... |
> `-----------------------------------> http://audiality.org -'
>    --- http://olofson.net --- http://www.reologica.se ---
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
> 





More information about the SDL mailing list