diff options
author | 3gg <3gg@shellblade.net> | 2025-05-24 17:01:01 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-05-24 17:01:01 -0700 |
commit | 0ffd63fed9dcfb60be7378b6f53f0f1d011fd26c (patch) | |
tree | 4a3b0f541b91349955b5b58f24b47c8b38f287f0 /src/input.c | |
parent | 68a3532728b55b73d8bcadb8ccfc1d9396346cd2 (diff) |
Tweaksmain
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c index 20551a6..4461c8b 100644 --- a/src/input.c +++ b/src/input.c | |||
@@ -52,7 +52,7 @@ static void GetTableRowColAtXy( | |||
52 | for (col = 0; (col < table->cols) && (x > table->widths[col]); ++col) { | 52 | for (col = 0; (col < table->cols) && (x > table->widths[col]); ++col) { |
53 | x -= table->widths[col]; | 53 | x -= table->widths[col]; |
54 | } | 54 | } |
55 | // 0 is the header and we want to map the first row to 0, so -1. | 55 | // 0 is the header, and we want to map the first row to 0, so -1. |
56 | row = table->offset + | 56 | row = table->offset + |
57 | ((p.y - widget->rect.y) / g_ui.font->header.glyph_height) - 1; | 57 | ((p.y - widget->rect.y) / g_ui.font->header.glyph_height) - 1; |
58 | // Out-of-bounds check. | 58 | // Out-of-bounds check. |