Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11mouse.c @ 3930:79a4c9017550 SDL-1.2
Fixed buggy SDL_VIDEO_X11_MOUSEACCEL behaviour...correctly free buffer, and
only call XChangePointerControl() if we have valid arguments.
Fixes Bugzilla #417.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 04 Apr 2007 09:15:39 +0000 |
parents | db7e15a99cb3 |
children | a1b03ba2fcd0 |
comparison
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 { |