summaryrefslogtreecommitdiffstats
path: root/game/client/gui/main_menu.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
committeruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
commit8bcbd2729388edc63c82d77d314b583af1447c49 (patch)
tree460c2b509372077f6adf95d72c4245988a580aed /game/client/gui/main_menu.cc
parent7fc7fdb001bea8674fe0dbc1b962f3ec2702debb (diff)
downloadvoxelius-8bcbd2729388edc63c82d77d314b583af1447c49.tar.bz2
voxelius-8bcbd2729388edc63c82d77d314b583af1447c49.zip
Cleanup math with qfengine ports again
Diffstat (limited to 'game/client/gui/main_menu.cc')
-rw-r--r--game/client/gui/main_menu.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/client/gui/main_menu.cc b/game/client/gui/main_menu.cc
index aa506d3..6c0ee37 100644
--- a/game/client/gui/main_menu.cc
+++ b/game/client/gui/main_menu.cc
@@ -96,7 +96,7 @@ void gui::main_menu::layout(void)
}
else {
auto reference_height = 0.225f * window_size.y;
- auto image_width = math::min(window_size.x, reference_height * title_aspect);
+ auto image_width = glm::min(window_size.x, reference_height * title_aspect);
auto image_height = image_width / title_aspect;
ImGui::SetCursorPosX(0.5f * (window_size.x - image_width));
ImGui::Image(title->handle, ImVec2(image_width, image_height));