proximity events bug fix gsoc2008_manymouse
authorSzymon Wilczek <kazeuser@gmail.com>
Wed, 06 Aug 2008 11:49:28 +0000
branchgsoc2008_manymouse
changeset 3778 a9370b995ded
parent 3777 54d08ecec1cb
child 3779 5f599ed92fb9
proximity events bug fix
include/SDL_events.h
src/events/SDL_mouse.c
--- a/include/SDL_events.h	Wed Aug 06 09:29:32 2008 +0000
+++ b/include/SDL_events.h	Wed Aug 06 11:49:28 2008 +0000
@@ -329,8 +329,8 @@
 
 typedef struct SDL_ProximityEvent
 {
+    Uint8 type;
     Uint8 which;
-    Uint8 type;
     int cursor;
     int x;
     int y;
--- a/src/events/SDL_mouse.c	Wed Aug 06 09:29:32 2008 +0000
+++ b/src/events/SDL_mouse.c	Wed Aug 06 11:49:28 2008 +0000
@@ -349,7 +349,6 @@
         event.proximity.x=x;
         event.proximity.y=y;
         event.proximity.cursor=mouse->current_end;
-        event.type=type;
         event.proximity.type=type;
         posted = (SDL_PushEvent(&event) > 0);
         if(type==SDL_PROXIMITYIN)