diff options
| author | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
| commit | 6dc5194895b6bd61d19bf5c95021471784084325 (patch) | |
| tree | 705c35b3a671a09fc52b406dca81e7761729ded6 /game/client/gui/main_menu.cc | |
| parent | 44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff) | |
| download | voxelius-6dc5194895b6bd61d19bf5c95021471784084325.tar.bz2 voxelius-6dc5194895b6bd61d19bf5c95021471784084325.zip | |
I forgot to set these to true in .clang-format
https://files.catbox.moe/909rig.gif
Diffstat (limited to 'game/client/gui/main_menu.cc')
| -rw-r--r-- | game/client/gui/main_menu.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/game/client/gui/main_menu.cc b/game/client/gui/main_menu.cc index 7af1f10..37ee398 100644 --- a/game/client/gui/main_menu.cc +++ b/game/client/gui/main_menu.cc @@ -62,7 +62,8 @@ void gui::main_menu::init(void) if(title->size.x > title->size.y) { title_aspect = static_cast<float>(title->size.x) / static_cast<float>(title->size.y); - } else { + } + else { title_aspect = static_cast<float>(title->size.y) / static_cast<float>(title->size.x); } @@ -89,7 +90,8 @@ void gui::main_menu::layout(void) if(session::is_ingame()) { ImGui::Dummy(ImVec2(0.0f, 32.0f * globals::gui_scale)); - } else { + } + else { auto reference_height = 0.225f * window_size.y; auto image_width = math::min(window_size.x, reference_height * title_aspect); auto image_height = image_width / title_aspect; @@ -110,7 +112,8 @@ void gui::main_menu::layout(void) } ImGui::Spacing(); - } else { + } + else { ImGui::SetCursorPosX(button_xpos); if(ImGui::Button(str_play.c_str(), ImVec2(button_width, 0.0f))) { @@ -138,7 +141,8 @@ void gui::main_menu::layout(void) } ImGui::Spacing(); - } else { + } + else { ImGui::SetCursorPosX(button_xpos); if(ImGui::Button(str_quit.c_str(), ImVec2(button_width, 0.0f))) { |
