From 6c8ffa7537ee708f58e78efca6192ed0139b14ba Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 30 Sep 2009 20:38:28 +0000 Subject: [PATCH] Fixed VC2005 compiler warnings --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403950 --- src/video/windib/SDL_dibevents.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/windib/SDL_dibevents.c b/src/video/windib/SDL_dibevents.c index 06548778e..d2faec5b4 100644 --- a/src/video/windib/SDL_dibevents.c +++ b/src/video/windib/SDL_dibevents.c @@ -341,11 +341,11 @@ static void DIB_GenerateMouseMotionEvent(_THIS) 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 @@ static void DIB_GenerateMouseMotionEvent(_THIS) 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); } }