diff src/mouse.c @ 235:65cabbdd5284

termporary revision
author Thinker K.F. Li <thinker@branda.to>
date Thu, 25 Dec 2008 18:40:27 +0800
parents 2637519e2bd7
children 1ca96c158125
line wrap: on
line diff
--- a/src/mouse.c	Wed Dec 24 23:43:39 2008 +0800
+++ b/src/mouse.c	Thu Dec 25 18:40:27 2008 +0800
@@ -28,11 +28,12 @@
 	new_evt.event.type = EVT_MOUSE_OUT;
 	if(IS_MBO_COORD(rdman->last_mouse_over)) {
 	    coord = (coord_t *)rdman->last_mouse_over;
-	    subject_notify(coord->mouse_event, (event_t *)&new_evt);
+	    subject_notify(coord_get_mouse_event(coord), (event_t *)&new_evt);
 	} else if(IS_MBO_SHAPES(rdman->last_mouse_over)) {
 	    shape = (shape_t *)rdman->last_mouse_over;
 	    ASSERT(shape->geo != NULL);
-	    subject_notify(shape->geo->mouse_event, (event_t *)&new_evt); 
+	    subject_notify(sh_get_mouse_event_subject(shape),
+			   (event_t *)&new_evt); 
 	}
     }