and yet more cleanup...

This commit is contained in:
asrael 2026-04-15 00:53:03 -05:00
parent 26e855369d
commit cf43538518
16 changed files with 80 additions and 107 deletions

View file

@ -39,9 +39,7 @@ void pxl8_transition_destroy(pxl8_transition* transition) {
f32 pxl8_transition_get_progress(const pxl8_transition* transition) {
if (!transition) return 0.0f;
f32 t = transition->time / transition->duration;
if (t < 0.0f) t = 0.0f;
if (t > 1.0f) t = 1.0f;
f32 t = pxl8_clamp(transition->time / transition->duration, 0.0f, 1.0f);
return transition->reverse ? 1.0f - t : t;
}