zeroing out the rest of the unititialize fields in mouse motion events.
authorBob Pendleton
Tue, 09 Jun 2009 15:45:33 +0000
changeset 31799b34679fda8b
parent 3178 72edc980789b
child 3180 77d6336711fc
zeroing out the rest of the unititialize fields in mouse motion events.
src/events/SDL_mouse.c
     1.1 --- a/src/events/SDL_mouse.c	Tue Jun 09 08:56:43 2009 +0000
     1.2 +++ b/src/events/SDL_mouse.c	Tue Jun 09 15:45:33 2009 +0000
     1.3 @@ -466,12 +466,14 @@
     1.4          event.motion.y = mouse->y;
     1.5          event.motion.z = mouse->z;
     1.6          event.motion.pressure = mouse->pressure;
     1.7 +        event.motion.pressure_max = mouse->pressure_max;
     1.8 +        event.motion.pressure_min = mouse->pressure_min;
     1.9 +        event.motion.rotation = 0;
    1.10 +        event.motion.tilt = 0;
    1.11 +        event.motion.cursor = mouse->current_end;
    1.12          event.motion.xrel = xrel;
    1.13          event.motion.yrel = yrel;
    1.14          event.motion.windowID = mouse->focus;
    1.15 -        event.motion.pressure_max = mouse->pressure_max;
    1.16 -        event.motion.pressure_min = mouse->pressure_min;
    1.17 -        event.motion.cursor = mouse->current_end;
    1.18          posted = (SDL_PushEvent(&event) > 0);
    1.19      }
    1.20      mouse->last_x = mouse->x;