Mercurial > sdl-ios-xcode
comparison src/video/windib/SDL_dibvideo.c @ 1882:339d733e3699
Fixed bug #258
Account for the menu height in AdjustWindowRectEx()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 24 Jun 2006 04:30:01 +0000 |
parents | 61f86f36afb9 |
children | c121d94672cb b2f59aadec0d |
comparison
equal
deleted
inserted
replaced
1881:61f86f36afb9 | 1882:339d733e3699 |
---|---|
783 | 783 |
784 bounds.left = SDL_windowX; | 784 bounds.left = SDL_windowX; |
785 bounds.top = SDL_windowY; | 785 bounds.top = SDL_windowY; |
786 bounds.right = SDL_windowX+video->w; | 786 bounds.right = SDL_windowX+video->w; |
787 bounds.bottom = SDL_windowY+video->h; | 787 bounds.bottom = SDL_windowY+video->h; |
788 AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0); | 788 AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), (GetMenu(SDL_Window) != NULL), 0); |
789 width = bounds.right-bounds.left; | 789 width = bounds.right-bounds.left; |
790 height = bounds.bottom-bounds.top; | 790 height = bounds.bottom-bounds.top; |
791 if ( (flags & SDL_FULLSCREEN) ) { | 791 if ( (flags & SDL_FULLSCREEN) ) { |
792 x = (GetSystemMetrics(SM_CXSCREEN)-width)/2; | 792 x = (GetSystemMetrics(SM_CXSCREEN)-width)/2; |
793 y = (GetSystemMetrics(SM_CYSCREEN)-height)/2; | 793 y = (GetSystemMetrics(SM_CYSCREEN)-height)/2; |