smooth movement
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@587 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
0e78d6dee9
commit
83340f95a2
19 changed files with 79 additions and 35 deletions
|
|
@ -166,6 +166,10 @@ MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent,
|
|||
}
|
||||
h->prop_event = 1;
|
||||
|
||||
if(h->widget_class != NULL && h->widget_class->tick != NULL){
|
||||
MwAddTickList(h);
|
||||
}
|
||||
|
||||
return h;
|
||||
}
|
||||
|
||||
|
|
@ -302,6 +306,7 @@ void MwLoop(MwWidget handle) {
|
|||
if(v != 0) break;
|
||||
|
||||
for(i = 0; i < arrlen(handle->tick_list); i++) {
|
||||
MwDispatch(handle->tick_list[i], tick);
|
||||
MwDispatchUserHandler(handle->tick_list[i], MwNtickHandler, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue