Fixed VC2005 compiler warnings SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Wed, 30 Sep 2009 20:38:28 +0000
branchSDL-1.2
changeset 42706b7f9089105e
parent 4269 60db3d01cb3a
child 4271 c57d816eb9c5
Fixed VC2005 compiler warnings
src/video/windib/SDL_dibevents.c
     1.1 --- a/src/video/windib/SDL_dibevents.c	Wed Sep 30 04:49:57 2009 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Wed Sep 30 20:38:28 2009 +0000
     1.3 @@ -341,11 +341,11 @@
     1.4  		center.y = (SDL_VideoSurface->h/2);
     1.5  		ClientToScreen(SDL_Window, &center);
     1.6  
     1.7 -		mouse.x -= (Sint16)center.x;
     1.8 -		mouse.y -= (Sint16)center.y;
     1.9 +		mouse.x -= center.x;
    1.10 +		mouse.y -= center.y;
    1.11  		if ( mouse.x || mouse.y ) {
    1.12  			SetCursorPos(center.x, center.y);
    1.13 -			posted = SDL_PrivateMouseMotion(0, 1, mouse.x, mouse.y);
    1.14 +			posted = SDL_PrivateMouseMotion(0, 1, (Sint16)mouse.x, (Sint16)mouse.y);
    1.15  		}
    1.16  	} else if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
    1.17  		ScreenToClient(SDL_Window, &mouse);
    1.18 @@ -353,7 +353,7 @@
    1.19         if (SDL_VideoSurface && this->hidden->gapiInfo)
    1.20  			GapiTransform(this->hidden->gapiInfo, &mouse.x, &mouse.y);
    1.21  #endif
    1.22 -		posted = SDL_PrivateMouseMotion(0, 0, mouse.x, mouse.y);
    1.23 +		posted = SDL_PrivateMouseMotion(0, 0, (Sint16)mouse.x, (Sint16)mouse.y);
    1.24  	}
    1.25  }
    1.26