Mercurial > MadButterfly
comparison examples/drag/main.c @ 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 | 09ad4382aa41 |
children | 29e1b2bffe4c |
comparison
equal
deleted
inserted
replaced
218:064ff6318dfc | 219:1eb9ee5ae4f2 |
---|---|
25 rt = X_MB_new(":0.0", 800, 600); | 25 rt = X_MB_new(":0.0", 800, 600); |
26 engine_t *en = (engine_t *) malloc(sizeof(engine_t)); | 26 engine_t *en = (engine_t *) malloc(sizeof(engine_t)); |
27 | 27 |
28 en->rt = rt; | 28 en->rt = rt; |
29 en->rdman = X_MB_rdman(rt); | 29 en->rdman = X_MB_rdman(rt); |
30 en->state = 0; | |
30 return en; | 31 return en; |
31 } | 32 } |
32 void engine_close(engine_t *en) | 33 void engine_close(engine_t *en) |
33 { | 34 { |
34 /* | 35 /* |