# HG changeset patch # User Bob Pendleton # Date 1244562333 0 # Node ID 9b34679fda8b15c8c6ed6ab79420b684dc8be0e6 # Parent 72edc980789b1d0d0a5d58a6f75ee6e75a58f26d zeroing out the rest of the unititialize fields in mouse motion events. diff -r 72edc980789b -r 9b34679fda8b src/events/SDL_mouse.c --- a/src/events/SDL_mouse.c Tue Jun 09 08:56:43 2009 +0000 +++ b/src/events/SDL_mouse.c Tue Jun 09 15:45:33 2009 +0000 @@ -466,12 +466,14 @@ event.motion.y = mouse->y; event.motion.z = mouse->z; event.motion.pressure = mouse->pressure; + event.motion.pressure_max = mouse->pressure_max; + event.motion.pressure_min = mouse->pressure_min; + event.motion.rotation = 0; + event.motion.tilt = 0; + event.motion.cursor = mouse->current_end; event.motion.xrel = xrel; event.motion.yrel = yrel; event.motion.windowID = mouse->focus; - event.motion.pressure_max = mouse->pressure_max; - event.motion.pressure_min = mouse->pressure_min; - event.motion.cursor = mouse->current_end; posted = (SDL_PushEvent(&event) > 0); } mouse->last_x = mouse->x;