src/video/x11/SDL_x11mouse.c
branchSDL-1.2
changeset 3930 79a4c9017550
parent 1740 db7e15a99cb3
child 4159 a1b03ba2fcd0
equal deleted inserted replaced
3929:56ec4d962487 3930:79a4c9017550
   214 			mouse_param = pin+1;
   214 			mouse_param = pin+1;
   215 		} else {
   215 		} else {
   216 			mouse_param = NULL;
   216 			mouse_param = NULL;
   217 		}
   217 		}
   218 	}
   218 	}
   219 	if ( mouse_param_buf ) {
   219 	if ( i == 3 ) {
   220 		XChangePointerControl(SDL_Display, True, True,
   220 		XChangePointerControl(SDL_Display, True, True,
   221 			accel_value[0], accel_value[1], accel_value[2]);
   221 			accel_value[0], accel_value[1], accel_value[2]);
   222 		SDL_free(mouse_param_buf);
   222 	}
   223 	}
   223 	SDL_stack_free(mouse_param_buf);
   224 }
   224 }
   225 
   225 
   226 /* Check to see if we need to enter or leave mouse relative mode */
   226 /* Check to see if we need to enter or leave mouse relative mode */
   227 void X11_CheckMouseModeNoLock(_THIS)
   227 void X11_CheckMouseModeNoLock(_THIS)
   228 {
   228 {