diff options
author | pommicket <pommicket@gmail.com> | 2023-01-01 23:03:25 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-01 23:03:25 -0500 |
commit | 3ee947ced94ce24463838e0c587cb076ac81ec98 (patch) | |
tree | fcac522a73ccaa2f261f144462367f392ff39dce /ui.c | |
parent | a3971fd612813c6544dbe63cb3d7e5d9c0b7b778 (diff) |
move math.c functions to util.c
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -587,7 +587,7 @@ static void popup_get_rects(Ted const *ted, u32 options, Rect *popup, Rect *butt float button_height = 30; u16 nbuttons = util_popcount(options); float button_width = popup->size.x / nbuttons; - popup->size = v2_clamp(popup->size, v2_zero, V2(window_width, window_height)); + popup->size = v2_clamp(popup->size, V2(0, 0), V2(window_width, window_height)); Rect r = rect(V2(popup->pos.x, rect_y2(*popup) - button_height), V2(button_width, button_height)); if (options & POPUP_YES) { *button_yes = r; |