To center your window set the SDL_VIDEO_CENTERED variable:
setenv(“SDL_VIDEO_CENTERED”, “SDL_VIDEO_CENTERED”, 1);
Of course you already knew that since you’ve read through SDL’s=20
documentation several times, right?
-Juan D. Espinoza
This isn’t in the window or init docs-- it is part of the environment variable
section, which isn’t supposed to be used for production code:
“Several environment variables are available to modify the behaviour of SDL.
Using these variables isn’t recommened and the names and presence of these
variables aren’t guaranteed from one release to the next. However, they can be
very useful for debugging purposes.”
Do you Yahoo!?
Yahoo! Search - Find what you?re looking for faster