mirror of https://github.com/minetest/minetest.git
static inline s32 interpolate_scroll
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
c087e1aca0
commit
b70b07f41a
|
@ -185,7 +185,7 @@ bool GUIScrollBar::OnEvent(const SEvent &event)
|
||||||
return IGUIElement::OnEvent(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);
|
s32 step = core::round32((to - from) * 0.5f);
|
||||||
if (step == 0)
|
if (step == 0)
|
||||||
|
|
Loading…
Reference in New Issue