zeroing out the rest of the unititialize fields in mouse motion events.
authorBob Pendleton <bob@pendleton.com>
Tue, 09 Jun 2009 15:45:33 +0000
changeset 3179 9b34679fda8b
parent 3178 72edc980789b
child 3180 77d6336711fc
zeroing out the rest of the unititialize fields in mouse motion events.
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;