Index: src/video/windib/SDL_dibevents.c =================================================================== --- src/video/windib/SDL_dibevents.c (revision 4488) +++ src/video/windib/SDL_dibevents.c (working copy) @@ -293,7 +293,7 @@ } } else if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) { ScreenToClient(SDL_Window, &mouse); -#ifdef _WIN32_WCE +#ifdef SDL_VIDEO_DRIVER_GAPI if (SDL_VideoSurface) GapiTransform(this->hidden->userOrientation, this->hidden->hiresFix, &mouse.x, &mouse.y); #endif