From e0fcd8a9be4f17c639854a53d72ee82601056065 Mon Sep 17 00:00:00 2001 From: KKNecmi Date: Fri, 13 Mar 2026 07:37:19 +0300 Subject: [PATCH] change variables to chat versions --- Minecraft.Client/Gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Minecraft.Client/Gui.cpp b/Minecraft.Client/Gui.cpp index 77504eeb2..8150f1afc 100644 --- a/Minecraft.Client/Gui.cpp +++ b/Minecraft.Client/Gui.cpp @@ -1136,7 +1136,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse) //} glPushMatrix(); - glTranslatef(0.0f, static_cast(screenHeightchat - iSafezoneYHalf - iTooltipsYOffset - 16 - 3 + 22) - 24.0f, 0.0f); + glTranslatef(0.0f, static_cast(screenHeightchat - iSafezoneYHalfChat - iTooltipsYOffsetChat - 16 - 3 + 22) - 24.0f, 0.0f); if(bDisplayGui) { @@ -1156,16 +1156,16 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse) if (alpha > 0) { - int x = iSafezoneXHalf+2; + int x = iSafezoneXHalfChat+2; int y = -(static_cast(i)) * 13 - 19; if(bTwoPlayerSplitscreen) { - y+= iHeightOffset; + y+= iHeightOffset; } wstring msg = guiMessages[iPad][i].string; int bgColor = ((alpha / 2) << 24) | (0x404040); - this->fill(0, y - bgfirsty, screenWidthchat/fScaleFactorWidth, y + bgsecondy, bgColor); + this->fill(0, y - bgfirsty, screenWidthchat/fScaleFactorWidthChat, y + bgsecondy, bgColor); glEnable(GL_BLEND); glPushMatrix();