ogl_beamforming

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

Commit: 6f17d7cc8c9612dc79f0011362d0e0a5f49e4fef
Parent: bda26e35280d9c059a5f55cecc5600a37faf0862
Author: Randy Palamar
Date:   Tue, 15 Apr 2025 21:59:34 -0600

ui: scale bar interaction should use the active variable not the hot variable

this happened to work due to the order of operations but it was not correct

Diffstat:
Mui.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui.c b/ui.c @@ -2369,7 +2369,7 @@ ui_end_interact(BeamformerUI *ui, v2 mouse) case VT_CYCLER: { is->active->u.cycler.state++; } break; case VT_B32: { is->active->u.b32 = !is->active->u.b32; } break; case VT_SCALE_BAR: { - scale_bar_interaction(ui, &is->hot->u.scale_bar, mouse); + scale_bar_interaction(ui, &is->active->u.scale_bar, mouse); } break; case VT_BEAMFORMER_VARIABLE: { ASSERT(is->active->u.beamformer_variable.store_type == VT_B32);