Mercurial > sdl-ios-xcode
diff src/video/gapi/SDL_gapivideo.c @ 4238:cbe5222d051a SDL-1.2
Fixed bug #803
Andrey 2009-09-21 19:14:43 PDT
gapi->hiresFix depends on the parameters GetSystemMetrics (SM_CXSCREEN) and
GetSystemMetrics (SM_CXSCREEN).
After the "Open GAPI display" they are changing.
Small patch fixed it.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 23 Sep 2009 07:01:50 +0000 |
parents | 3b7fc3416601 |
children | 9ea4413f0a9e |
line wrap: on
line diff
--- a/src/video/gapi/SDL_gapivideo.c Wed Sep 23 06:57:12 2009 +0000 +++ b/src/video/gapi/SDL_gapivideo.c Wed Sep 23 07:01:50 2009 +0000 @@ -776,9 +776,14 @@ */ WIN_FlushMessageQueue(); - /* Open GAPI display */ + /* Open GAPI display */ if( !gapi->useVga && gapi->useGXOpenDisplay && !gapi->alreadyGXOpened ) { +#if REPORT_VIDEO_INFO + printf("system display width (orig): %d\n", GetSystemMetrics(SM_CXSCREEN)); + printf("system display height (orig): %d\n", GetSystemMetrics(SM_CYSCREEN)); +#endif + gapi->hiresFix = (width > GetSystemMetrics(SM_CXSCREEN)) || (height > GetSystemMetrics(SM_CYSCREEN)); gapi->alreadyGXOpened = 1; if( !gapi->gxFunc.GXOpenDisplay(SDL_Window, GX_FULLSCREEN) ) {