comparison src/video/windib/SDL_dibvideo.c @ 1705:fc731a7d83ed SDL-1.3

Merged fix for bug #258 from SDL 1.2
author Sam Lantinga <slouken@libsdl.org>
date Sat, 24 Jun 2006 04:31:42 +0000
parents 03fb364e3283
children
comparison
equal deleted inserted replaced
1704:03fb364e3283 1705:fc731a7d83ed
803 bounds.left = SDL_windowX; 803 bounds.left = SDL_windowX;
804 bounds.top = SDL_windowY; 804 bounds.top = SDL_windowY;
805 bounds.right = SDL_windowX + video->w; 805 bounds.right = SDL_windowX + video->w;
806 bounds.bottom = SDL_windowY + video->h; 806 bounds.bottom = SDL_windowY + video->h;
807 AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), 807 AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE),
808 FALSE, 0); 808 (GetMenu(SDL_Window) != NULL), 0);
809 width = bounds.right - bounds.left; 809 width = bounds.right - bounds.left;
810 height = bounds.bottom - bounds.top; 810 height = bounds.bottom - bounds.top;
811 if ((flags & SDL_FULLSCREEN)) { 811 if ((flags & SDL_FULLSCREEN)) {
812 x = (GetSystemMetrics(SM_CXSCREEN) - width) / 2; 812 x = (GetSystemMetrics(SM_CXSCREEN) - width) / 2;
813 y = (GetSystemMetrics(SM_CYSCREEN) - height) / 2; 813 y = (GetSystemMetrics(SM_CYSCREEN) - height) / 2;