commit 979e891

Michael Forney  ·  2014-01-23 02:36:06 +0000 UTC
parent b55a0a0
pointer: Position cursor before attaching buffer
1 files changed,  +1, -1
+1, -1
 1@@ -202,8 +202,8 @@ void swc_pointer_set_cursor(struct swc_pointer * pointer, uint32_t id)
 2 
 3     pointer->cursor.hotspot.x = cursor->hotspot_x;
 4     pointer->cursor.hotspot.y = cursor->hotspot_y;
 5-    swc_view_attach(&pointer->cursor.view, &pointer->cursor.internal_buffer);
 6     update_cursor(pointer);
 7+    swc_view_attach(&pointer->cursor.view, &pointer->cursor.internal_buffer);
 8 }
 9 
10 bool swc_pointer_initialize(struct swc_pointer * pointer)