[SDL] moving screen when u change resolution

David Olofson david at olofson.net
Fri Jan 28 15:40:10 PST 2005

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 

//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 ---

More information about the SDL mailing list