static cvar_t *steelstorm_showing_map = NULL; // detect but do not create the cvar
static cvar_t *steelstorm_showing_mousecursor = NULL; // detect but do not create the cvar
-static int win_half_width = 50;
-static int win_half_height = 50;
-
static SDL_GLContext context;
static SDL_Window *window;
{
// have the mouse stuck in the middle, example use: prevent expose effect of beryl during the game when not using
// window grabbing. --blub
+ int win_half_width = vid.mode.width>>1;
+ int win_half_height = vid.mode.height>>1;
// we need 2 frames to initialize the center position
if(!stuck)
vid.yPos = SDL_WINDOWPOS_CENTERED_DISPLAY(vid.displayindex);
vid_wmborder_waiting = vid_wmborderless = false;
- win_half_width = mode->width>>1;
- win_half_height = mode->height>>1;
-
if(vid_resizable.integer)
windowflags |= SDL_WINDOW_RESIZABLE;