From 26b2d4f092b18a8d2ecbbd437c1955d19b62b46e Mon Sep 17 00:00:00 2001 From: ashn Date: Thu, 16 Nov 2023 00:33:13 -0500 Subject: [PATCH] Clean up u8_slider in the Sunder demo --- demo.sunder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo.sunder b/demo.sunder index a24ff89..0a62a33 100644 --- a/demo.sunder +++ b/demo.sunder @@ -208,11 +208,11 @@ func log_window(ctx: *mu_Context) void var _u8_slider_tmp: float = 0.0; func u8_slider(ui: *smol::ui, value: *u8, low: sint, high: sint) bool { - mu_push_id(ui.*.context, &value, (:sint)sizeof(typeof(value))); + ui.*.push_id(&value, (:sint)sizeof(typeof(value))); _u8_slider_tmp = (:float)*value; var res = ui.*.slider_ex(&_u8_slider_tmp, (:f32)low, (:f32)high, 0.0, startof("%.0f"), MU_OPT_ALIGNCENTER); *value = (:u8)_u8_slider_tmp; - mu_pop_id(ui.*.context); + ui.*.pop_id(); return res; }