# HG changeset patch # User Thinker K.F. Li # Date 1229160794 -28800 # Node ID 1eb9ee5ae4f2193ad698944123543e38246df48c # Parent 064ff6318dfc58a293d5705b8efd27818c2e85f1 Star in drag would be moved out the window border when cursor hit it. - engine_init() forget to intialize engine_t::state to 0. diff -r 064ff6318dfc -r 1eb9ee5ae4f2 examples/drag/main.c --- 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)