Skip to content

Commit

Permalink
Fixed VC2005 compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 30, 2009
1 parent 9ff6ef2 commit 223c0ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/windib/SDL_dibevents.c
Expand Up @@ -341,19 +341,19 @@ static void DIB_GenerateMouseMotionEvent(_THIS)
center.y = (SDL_VideoSurface->h/2);
ClientToScreen(SDL_Window, &center);

mouse.x -= (Sint16)center.x;
mouse.y -= (Sint16)center.y;
mouse.x -= center.x;
mouse.y -= center.y;
if ( mouse.x || mouse.y ) {
SetCursorPos(center.x, center.y);
posted = SDL_PrivateMouseMotion(0, 1, mouse.x, mouse.y);
posted = SDL_PrivateMouseMotion(0, 1, (Sint16)mouse.x, (Sint16)mouse.y);
}
} else if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
ScreenToClient(SDL_Window, &mouse);
#ifdef SDL_VIDEO_DRIVER_GAPI
if (SDL_VideoSurface && this->hidden->gapiInfo)
GapiTransform(this->hidden->gapiInfo, &mouse.x, &mouse.y);
#endif
posted = SDL_PrivateMouseMotion(0, 0, mouse.x, mouse.y);
posted = SDL_PrivateMouseMotion(0, 0, (Sint16)mouse.x, (Sint16)mouse.y);
}
}

Expand Down

0 comments on commit 223c0ea

Please sign in to comment.