ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | LICENSE

Commit: ccc6d98e0ba77b7a4e5946f40d83f2d0ad9139dd
Parent: 9ea8b4b8c2929c87eb9f1868d9c95bb0c5d4295c
Author: Randy Palamar
Date:   Thu, 14 Nov 2024 16:25:55 -0700

ui: adjust threshold instead of dynamic range when scrolling on image

This is typically the value we actually want to adjust.

Diffstat:
Mui.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui.c b/ui.c @@ -833,9 +833,9 @@ draw_ui(BeamformerCtx *ctx, BeamformerInput *input) if (CheckCollisionPointRec(mouse.rl, vr.rl)) { InteractionState *is = &ui->interaction; is->hot_state = IS_DISPLAY; - is->hot.store = &ctx->fsctx.db; + is->hot.store = &ctx->fsctx.threshold; is->hot.type = VT_F32; - is->hot.f32_limits = (v2){.x = -120}; + is->hot.f32_limits = (v2){.y = 240}; is->hot.flags = V_GEN_MIPMAPS; is->hot.display_scale = 1; is->hot.scroll_scale = 1;