Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged fix for bug #258 from SDL 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 24, 2006
1 parent f422741 commit 733dca5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/video/windib/SDL_dibvideo.c
Expand Up @@ -805,7 +805,7 @@ DIB_SetVideoMode(_THIS, SDL_Surface * current,
bounds.right = SDL_windowX + video->w;
bounds.bottom = SDL_windowY + video->h;
AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE),
FALSE, 0);
(GetMenu(SDL_Window) != NULL), 0);
width = bounds.right - bounds.left;
height = bounds.bottom - bounds.top;
if ((flags & SDL_FULLSCREEN)) {
Expand Down
16 changes: 7 additions & 9 deletions src/video/windx5/SDL_dx5video.c
Expand Up @@ -1225,9 +1225,8 @@ DX5_SetVideoMode(_THIS, SDL_Surface * current,
bounds.top = SDL_windowY;
bounds.right = SDL_windowX + video->w;
bounds.bottom = SDL_windowY + video->h;
AdjustWindowRectEx(&bounds,
GetWindowLong(SDL_Window, GWL_STYLE),
FALSE, 0);
AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE),
(GetMenu(SDL_Window) != NULL), 0);
width = bounds.right - bounds.left;
height = bounds.bottom - bounds.top;
if ((flags & SDL_FULLSCREEN)) {
Expand Down Expand Up @@ -1315,10 +1314,10 @@ DX5_SetVideoMode(_THIS, SDL_Surface * current,
bounds.right = GetSystemMetrics(SM_CXSCREEN);
bounds.bottom = GetSystemMetrics(SM_CYSCREEN);
AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE),
FALSE, 0);
(GetMenu(SDL_Window) != NULL), 0);
SetWindowPos(SDL_Window, HWND_TOPMOST, bounds.left, bounds.top,
bounds.right - bounds.left,
bounds.bottom - bounds.top, SWP_NOCOPYBITS);
bounds.right - bounds.left, bounds.bottom - bounds.top,
SWP_NOCOPYBITS);
ShowWindow(SDL_Window, SW_SHOW);
while (GetForegroundWindow() != SDL_Window) {
SetForegroundWindow(SDL_Window);
Expand Down Expand Up @@ -1635,9 +1634,8 @@ DX5_SetVideoMode(_THIS, SDL_Surface * current,
bounds.top = SDL_windowY;
bounds.right = SDL_windowX + video->w;
bounds.bottom = SDL_windowY + video->h;
AdjustWindowRectEx(&bounds,
GetWindowLong(SDL_Window, GWL_STYLE),
FALSE, 0);
AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE),
(GetMenu(SDL_Window) != NULL), 0);
width = bounds.right - bounds.left;
height = bounds.bottom - bounds.top;
if (center) {
Expand Down

0 comments on commit 733dca5

Please sign in to comment.