Commit: dca23e416ee968820bb82665c120e15000143278
Parent: c414e5851aa57241be9e7686cb3aa845357f9375
Author: Randy Palamar
Date: Mon, 28 Oct 2024 15:16:31 -0600
ui: use the correct scale value when storing text input
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui.c b/ui.c
@@ -304,7 +304,7 @@ set_text_input_idx(BeamformerCtx *ctx, BPModifiableValue bmv, Rect r, v2 mouse)
{
if (ctx->is.store.value && !bmv_equal(&ctx->is.store, &bmv)) {
f32 new_val = parse_f64((s8){.len = ctx->is.buf_len, .data = ctx->is.buf});
- ctx->is.store.store_fn(ctx, &ctx->is.store, new_val / bmv.display_scale, 0);
+ ctx->is.store.store_fn(ctx, &ctx->is.store, new_val / ctx->is.store.display_scale, 0);
}
ctx->is.store = bmv;