From 0fe5cb60a39cd8f9282728c8f3498a8e4ed00974 Mon Sep 17 00:00:00 2001 From: kichikuou Date: Sun, 31 May 2020 09:58:18 +0900 Subject: [PATCH] SACT: Add WaitVsync() in animation loops So that sprite updates are reflected on the screen. --- modules/SACT/sprite_move.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/SACT/sprite_move.c b/modules/SACT/sprite_move.c index e98bae9..64c1819 100644 --- a/modules/SACT/sprite_move.c +++ b/modules/SACT/sprite_move.c @@ -164,6 +164,7 @@ void spev_move_waitend(sprite_t *sp, int dx, int dy, int time) { while (sp->move.moving) { nact->callback(); + WaitVsync(); } } @@ -182,6 +183,7 @@ void spev_wait4moving_sp() { while (sp->move.moving) { nact->callback(); + WaitVsync(); } } }