comparison src/video/windib/SDL_dibvideo.c @ 3868:b2f59aadec0d SDL-1.2

Fixed bug #294 Can't build SDL 1.2.11(and svn) for Pocket PC 2003 with Visual Studio 2005 Fix contributed by Dmitry Yakimov
author Sam Lantinga <slouken@libsdl.org>
date Sat, 23 Sep 2006 23:07:52 +0000
parents 339d733e3699
children 8582c6a5ca16
comparison
equal deleted inserted replaced
3867:4dae257a9cbf 3868:b2f59aadec0d
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 #ifndef _WIN32_WCE
788 AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), (GetMenu(SDL_Window) != NULL), 0); 789 AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), (GetMenu(SDL_Window) != NULL), 0);
790 #else
791 // The bMenu parameter must be FALSE; menu bars are not supported
792 AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), 0, 0);
793 #endif
789 width = bounds.right-bounds.left; 794 width = bounds.right-bounds.left;
790 height = bounds.bottom-bounds.top; 795 height = bounds.bottom-bounds.top;
791 if ( (flags & SDL_FULLSCREEN) ) { 796 if ( (flags & SDL_FULLSCREEN) ) {
792 x = (GetSystemMetrics(SM_CXSCREEN)-width)/2; 797 x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
793 y = (GetSystemMetrics(SM_CYSCREEN)-height)/2; 798 y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;