From e073665644128d50fc56cc180d9d61a7a1a93ba0 Mon Sep 17 00:00:00 2001 From: iProgramInCpp Date: Sun, 6 Aug 2023 12:03:06 +0300 Subject: [PATCH] * Gui: Use ratios instead of hardcoded sub-1 floating point values, to make the mechanism more clear. --- source/client/gui/Gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/client/gui/Gui.cpp b/source/client/gui/Gui.cpp index 5295071..2fa96f8 100644 --- a/source/client/gui/Gui.cpp +++ b/source/client/gui/Gui.cpp @@ -15,9 +15,9 @@ #endif #ifdef ENH_USE_GUI_SCALE_2 -float Gui::InvGuiScale = 0.5f; +float Gui::InvGuiScale = 1.0f / 2.0f; #else -float Gui::InvGuiScale = 0.333333f; +float Gui::InvGuiScale = 1.0f / 3.0f; #endif Gui::Gui(Minecraft* pMinecraft)