static inline s32 interpolate_scroll

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
grorp 2024-04-20 12:36:09 +02:00 committed by GitHub
parent c087e1aca0
commit b70b07f41a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ bool GUIScrollBar::OnEvent(const SEvent &event)
return IGUIElement::OnEvent(event);
}
s32 interpolate_scroll(s32 from, s32 to)
static inline s32 interpolate_scroll(s32 from, s32 to)
{
s32 step = core::round32((to - from) * 0.5f);
if (step == 0)