Mercurial > sdl-ios-xcode
diff src/video/windib/SDL_dibevents.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 | 29605c881b29 |
children | 6b7f9089105e |
line wrap: on
line diff
--- a/src/video/windib/SDL_dibevents.c Wed Sep 23 06:57:12 2009 +0000 +++ b/src/video/windib/SDL_dibevents.c Wed Sep 23 07:01:50 2009 +0000 @@ -92,6 +92,12 @@ Sint16 rotatedX; Sint16 rotatedY; + if(gapiInfo->hiresFix) + { + *x *= 2; + *y *= 2; + } + if(gapiInfo->userOrientation == SDL_ORIENTATION_UP && gapiInfo->gapiOrientation == SDL_ORIENTATION_RIGHT) {