ogl_beamforming

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

Commit: 7e565e97c48d04db8450372384151a5f26ef6d2a
Parent: 139ff386c15775849b2ba0b055a9a2297fef9952
Author: Randy Palamar
Date:   Thu, 24 Apr 2025 21:18:00 -0600

ui: correctly size table cell input rects

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

diff --git a/ui.c b/ui.c @@ -1682,7 +1682,8 @@ draw_table_cell(BeamformerUI *ui, TableCell *cell, Rect cell_rect, TextAlignment v4 base_colour = ts.colour; if (cell->kind == TCK_VARIABLE && cell->var->flags & V_INPUT) { - if (hover_var(ui, mouse, cell_rect, cell->var) && (cell->var->flags & V_TEXT)) + Rect hover = {.pos = cell_rect.pos, .size = {.w = cell->width, .h = cell_rect.size.h}}; + if (hover_var(ui, mouse, hover, cell->var) && (cell->var->flags & V_TEXT)) ui->interaction.hot_font = ts.font; ts.colour = lerp_v4(ts.colour, HOVERED_COLOUR, cell->var->hover_t); }