static SDL_Surface *screen;
static int video_flags;
#else
-static SDL_GLContext *context;
+static SDL_GLContext context;
static SDL_Window *window;
static int window_flags;
#endif
else
{
rect->left = workArea.left + max(0, (workWidth - width) / 2);
- rect->top = workArea.top + (0, (workHeight - height) / 2);
+ rect->top = workArea.top + ((workHeight - height) / 2);
}
}
#endif
// Knghtbrd: should do platform-specific extension string function here
vid_isfullscreen = false;
- int xPos = SDL_WINDOWPOS_UNDEFINED;
- int yPos = SDL_WINDOWPOS_UNDEFINED;
#if SDL_MAJOR_VERSION == 1
{
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
}
}
#else
+ int xPos = SDL_WINDOWPOS_UNDEFINED;
+ int yPos = SDL_WINDOWPOS_UNDEFINED;
{
if (mode->fullscreen) {
if (vid_desktopfullscreen.integer)
}
else {
#ifdef WIN32
- DWORD windowStyle = 0;
RECT rect;
AdjustWindowBounds(mode, &rect);
xPos = rect.left;