src/video/windib/SDL_dibvideo.c
branchSDL-1.3
changeset 1705 fc731a7d83ed
parent 1704 03fb364e3283
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;