animation: add rtgui_anim_set_cur_tick
animation: fix the tick calculation
animation: try to cope with dc buggs