Commit: 31d87b20c004a9f15766223dff9c89d985a344cf
Parent: 33b71efec958d000371c5d884b13bba6d671c2ab
Author: Randy Palamar
Date: Mon, 14 Apr 2025 20:01:06 -0600
ui: always change threshold when scrolling on view
After using this with live imaging threshold is what we want to
change regardless of if we are using log scale or power scale.
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/ui.c b/ui.c
@@ -2222,11 +2222,7 @@ display_interaction(BeamformerUI *ui, v2 mouse, f32 scroll)
if (scroll) {
ASSERT(ui->interaction.active->type == VT_BEAMFORMER_FRAME_VIEW);
BeamformerFrameView *bv = ui->interaction.active->u.generic;
- if (bv->log_scale->u.b32) {
- bv->threshold.u.f32 += scroll;
- } else {
- bv->gamma.u.scaled_f32.val += scroll * bv->gamma.u.scaled_f32.scale;
- }
+ bv->threshold.u.f32 += scroll;
bv->needs_update = 1;
}