From 88c01588aa0830e219eaa62588839e4d1e2883ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Wed, 25 Jun 2025 00:44:36 +0500 Subject: Clang-format the entire source code --- game/client/hotbar.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'game/client/hotbar.cc') diff --git a/game/client/hotbar.cc b/game/client/hotbar.cc index a5f976c..a783347 100644 --- a/game/client/hotbar.cc +++ b/game/client/hotbar.cc @@ -1,4 +1,5 @@ #include "client/pch.hh" + #include "client/hotbar.hh" #include "core/config.hh" @@ -28,7 +29,7 @@ static resource_ptr hotbar_selector; static ImU32 get_color_alpha(ImGuiCol style_color, float alpha) { - const auto &color = ImGui::GetStyleColorVec4(style_color); + const auto& color = ImGui::GetStyleColorVec4(style_color); return ImGui::GetColorU32(ImVec4(color.x, color.y, color.z, alpha)); } @@ -45,7 +46,7 @@ static void update_hotbar_item(void) } } -static void on_glfw_key(const GlfwKeyEvent &event) +static void on_glfw_key(const GlfwKeyEvent& event) { if((event.action == GLFW_PRESS) && !globals::gui_screen) { for(unsigned int i = 0U; i < HOTBAR_SIZE; ++i) { @@ -58,7 +59,7 @@ static void on_glfw_key(const GlfwKeyEvent &event) } } -static void on_glfw_scroll(const GlfwScrollEvent &event) +static void on_glfw_scroll(const GlfwScrollEvent& event) { if(!globals::gui_screen) { if(event.dy < 0.0) { @@ -120,7 +121,7 @@ void hotbar::deinit(void) void hotbar::layout(void) { - auto &style = ImGui::GetStyle(); + auto& style = ImGui::GetStyle(); auto item_size = ITEM_SIZE * globals::gui_scale; auto hotbar_width = HOTBAR_SIZE * item_size; -- cgit