# HG changeset patch # User Sam Lantinga # Date 1254343108 0 # Node ID 6b7f9089105ec42fb59b0d53846e18ab2996b320 # Parent 60db3d01cb3a6b6f5afd795b74e60c83e4b0a56d Fixed VC2005 compiler warnings diff -r 60db3d01cb3a -r 6b7f9089105e src/video/windib/SDL_dibevents.c --- a/src/video/windib/SDL_dibevents.c Wed Sep 30 04:49:57 2009 +0000 +++ b/src/video/windib/SDL_dibevents.c Wed Sep 30 20:38:28 2009 +0000 @@ -341,11 +341,11 @@ center.y = (SDL_VideoSurface->h/2); ClientToScreen(SDL_Window, ¢er); - 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); @@ -353,7 +353,7 @@ 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); } }