mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 23:50:22 +02:00
static inline s32 interpolate_scroll
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user