summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-24 08:45:16 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-24 08:45:16 +0300
commit0c99a388871a0c4c9102c162a65c03c2f3660cce (patch)
tree57b13d910d7a79f8cedca3ed6d6e6ea419a581cd /src/ui/util.c
parent859fad2c6d5013ace7fcb749b591468dd0b65612 (diff)
Adjusted smooth scroll speed when using mouse wheel
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 27950c5e..603b3213 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -221,6 +221,10 @@ void stop_Anim(iAnim *d) {
221 d->when = d->due = SDL_GetTicks(); 221 d->when = d->due = SDL_GetTicks();
222} 222}
223 223
224float pos_Anim(const iAnim *d) {
225 return pos_Anim_(d, frameTime_Window(get_Window()));
226}
227
224float value_Anim(const iAnim *d) { 228float value_Anim(const iAnim *d) {
225 return valueAt_Anim_(d, frameTime_Window(get_Window())); 229 return valueAt_Anim_(d, frameTime_Window(get_Window()));
226} 230}