ogl_beamforming

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

Commit: 3e9997119276b1249e7afdf2565c602e37615ae2
Parent: 474420150a194e553e035254e17a477362b5f1ce
Author: Randy Palamar
Date:   Thu, 11 Jul 2024 12:53:42 -0600

allow negative input values

Diffstat:
Mbeamformer.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/beamformer.c b/beamformer.c @@ -269,7 +269,9 @@ draw_settings_ui(BeamformerCtx *ctx, Arena arena, f32 dt, Rect r, v2 mouse) break; } - if ((key >= '0' && key <= '9') || key == '.') + if ((key >= '0' && key <= '9') || + (key == '.') || + (key == '-' && focus_buf_curs == 0)) focus_buf[focus_buf_curs++] = key; key = GetCharPressed();