Skip to content

Commit

Permalink
Clean up u8_slider in the Sunder demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ashn-dot-dev committed Nov 16, 2023
1 parent 5bbb688 commit 26b2d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo.sunder
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 26b2d4f

Please sign in to comment.