diff options
Diffstat (limited to 'src/jalv_gtk.c')
-rw-r--r-- | src/jalv_gtk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c index 15d43bb..4a8930d 100644 --- a/src/jalv_gtk.c +++ b/src/jalv_gtk.c @@ -1521,7 +1521,8 @@ jalv_frontend_open(Jalv* jalv) jalv_init_ui(jalv); - g_timeout_add(1000 / jalv->ui_update_hz, (GSourceFunc)jalv_update, jalv); + const float update_interval_ms = 1000.0f / jalv->settings.ui_update_hz; + g_timeout_add((unsigned)update_interval_ms, (GSourceFunc)jalv_update, jalv); gtk_window_present(GTK_WINDOW(window)); |