修复128*64屏幕限制导致动画分段问题

This commit is contained in:
herexiong 2024-10-07 00:16:23 +08:00 committed by GitHub
parent ac4cd4e8d6
commit d94f43caee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -889,7 +889,7 @@ void animation(float *a, float *a_trg, uint8_t n)
{
if (*a != *a_trg)
{
if (fabs(*a - *a_trg) < 0.15f) *a = *a_trg;
if (fabs(*a - *a_trg) < 1.0f) *a = *a_trg;
else *a += (*a_trg - *a) / (ui.param[n] / 10.0f);
}
}