[SDL] How to recenter my window...

Manuel García Cabrera manugarciac5 at yahoo.com.ar
Sat Jun 16 20:27:45 PDT 2007


Right before I call SDL_SetVideoMode, I'm calling 		

putenv("SDL_VIDEO_WINDOW_POS");
putenv("SDL_VIDEO_CENTERED=1");

and it seems to be working fine. All this happens within a "Player"
class. Well, when I delete my instance of Player, and create another one
it doesn't "recenter" my window, it just puts de window in the place the
other one was (it matches their top-left corners). How could I recenter
the window?


More information about the SDL mailing list