Commit: 6f59cf326c45fbd5dda712672f371a6f10290434 Parent: 5598a7bf48dc0f834bf5f792d3767a1bff47e57e Author: Randy Palamar Date: Sun, 8 Dec 2024 21:13:21 -0700 do the thing the comment said Diffstat:
M | util.c | | | 7 | +++++++ |
M | vtgl.c | | | 8 | -------- |
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/util.c b/util.c @@ -569,6 +569,13 @@ button_action(ButtonState *button, b32 pressed) button->ended_down = pressed; } +static b32 +pressed_last_frame(ButtonState *button) +{ + b32 result = (button->transitions > 1) || (button->ended_down && button->transitions == 1); + return result; +} + static s8 utf8_encode(u32 cp) { diff --git a/vtgl.c b/vtgl.c @@ -189,14 +189,6 @@ clear_colour(void) glClear(GL_COLOR_BUFFER_BIT); } -/* TODO: move this elsewhere */ -static b32 -pressed_last_frame(ButtonState *button) -{ - b32 result = (button->transitions > 1) || (button->ended_down && button->transitions == 1); - return result; -} - static v2 get_cell_size(FontAtlas *fa) {