smooth movement

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@587 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
Nishi 2025-11-04 01:52:44 +00:00
commit 83340f95a2
19 changed files with 79 additions and 35 deletions

View file

@ -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);
}