comparison 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
comparison
equal deleted inserted replaced
4237:0adda8ff43ef 4238:cbe5222d051a
89 } 89 }
90 90
91 static void GapiTransform(GapiInfo *gapiInfo, LONG *x, LONG *y) { 91 static void GapiTransform(GapiInfo *gapiInfo, LONG *x, LONG *y) {
92 Sint16 rotatedX; 92 Sint16 rotatedX;
93 Sint16 rotatedY; 93 Sint16 rotatedY;
94
95 if(gapiInfo->hiresFix)
96 {
97 *x *= 2;
98 *y *= 2;
99 }
94 100
95 if(gapiInfo->userOrientation == SDL_ORIENTATION_UP && 101 if(gapiInfo->userOrientation == SDL_ORIENTATION_UP &&
96 gapiInfo->gapiOrientation == SDL_ORIENTATION_RIGHT) 102 gapiInfo->gapiOrientation == SDL_ORIENTATION_RIGHT)
97 { 103 {
98 rotatedX = *x; 104 rotatedX = *x;