Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
4237:0adda8ff43ef | 4238:cbe5222d051a |
---|---|
774 Flush the message loop or this can cause big problems later | 774 Flush the message loop or this can cause big problems later |
775 Especially if the user decides to use dialog boxes or assert()! | 775 Especially if the user decides to use dialog boxes or assert()! |
776 */ | 776 */ |
777 WIN_FlushMessageQueue(); | 777 WIN_FlushMessageQueue(); |
778 | 778 |
779 /* Open GAPI display */ | 779 /* Open GAPI display */ |
780 if( !gapi->useVga && gapi->useGXOpenDisplay && !gapi->alreadyGXOpened ) | 780 if( !gapi->useVga && gapi->useGXOpenDisplay && !gapi->alreadyGXOpened ) |
781 { | 781 { |
782 #if REPORT_VIDEO_INFO | |
783 printf("system display width (orig): %d\n", GetSystemMetrics(SM_CXSCREEN)); | |
784 printf("system display height (orig): %d\n", GetSystemMetrics(SM_CYSCREEN)); | |
785 #endif | |
786 gapi->hiresFix = (width > GetSystemMetrics(SM_CXSCREEN)) || (height > GetSystemMetrics(SM_CYSCREEN)); | |
782 gapi->alreadyGXOpened = 1; | 787 gapi->alreadyGXOpened = 1; |
783 if( !gapi->gxFunc.GXOpenDisplay(SDL_Window, GX_FULLSCREEN) ) | 788 if( !gapi->gxFunc.GXOpenDisplay(SDL_Window, GX_FULLSCREEN) ) |
784 { | 789 { |
785 SDL_SetError("Couldn't initialize GAPI"); | 790 SDL_SetError("Couldn't initialize GAPI"); |
786 return(NULL); | 791 return(NULL); |