summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-06-04 21:52:57 +1000
committerquou <quou@disroot.org>2024-06-04 21:52:57 +1000
commit008b4c7b1f589780be0e2624337484c085cacbe0 (patch)
treec3d25da78e3943abe43f49ddd638c5127e532225
parent557e07876de0086b70e301b104547bf35ec57959 (diff)
Speed up animation of the seek bar.
-rw-r--r--library.c1
-rw-r--r--main.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/library.c b/library.c
index 1ff2510..350789a 100644
--- a/library.c
+++ b/library.c
@@ -219,6 +219,7 @@ int sound_mix(
);
if (!r) p->play = 0;
p->cs += r;
+ ui_update_seek(p);
return r * p->channels * 4;
}
diff --git a/main.c b/main.c
index 2b0e763..3a0ebed 100644
--- a/main.c
+++ b/main.c
@@ -234,7 +234,6 @@ int prog_main(void* mem) {
&pctrl->e,
UI_ELEMENT_H_FILL
);
- UIElementAnimate(&seek_slider->e, false);
seek_slider->e.messageUser = seek_msg;
pqueue = UIPanelCreate(&split3->e, UI_PANEL_GRAY);