I’m using this to center my window:
putenv("SDL_VIDEO_WINDOW_POS");
putenv("SDL_VIDEO_CENTERED=1");
But I also want to appear onn top of the screen. How can I do that?
I’m using this to center my window:
putenv("SDL_VIDEO_WINDOW_POS");
putenv("SDL_VIDEO_CENTERED=1");
But I also want to appear onn top of the screen. How can I do that?
I’m using this to center my window:
putenv(“SDL_VIDEO_WINDOW_POS”);
putenv(“SDL_VIDEO_CENTERED=1”);
But I also want to appear onn top of the screen. How can I do that?
I think you’ll have to calculate the center x value yourself and use
putenv(“SDL_VIDEO_WINDOW_POS=X,0”);
See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment