changeset 219:1eb9ee5ae4f2

Star in drag would be moved out the window border when cursor hit it. - engine_init() forget to intialize engine_t::state to 0.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 13 Dec 2008 17:33:14 +0800
parents 064ff6318dfc
children ad4f8a956505
files examples/drag/main.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/examples/drag/main.c	Sat Dec 13 17:23:51 2008 +0800
+++ b/examples/drag/main.c	Sat Dec 13 17:33:14 2008 +0800
@@ -27,6 +27,7 @@
 
     en->rt = rt;
     en->rdman =  X_MB_rdman(rt);
+    en->state = 0;
     return en;
 }
 void engine_close(engine_t *en)