From 9a3dfd115fb54dd39dd480be03947337f72f172a Mon Sep 17 00:00:00 2001 From: Xenovyy Date: Thu, 19 Mar 2026 19:54:32 -0400 Subject: [PATCH] Revert "Added Dark Highlight on f3 menu for better visibility" This reverts commit 72c14ccbfd0e7608a65c9c5f5bacefb3b4f18a0e. --- Minecraft.Client/Gui.cpp | 14 +++++++------- Minecraft.Client/GuiComponent.cpp | 6 ++---- Minecraft.Client/GuiComponent.h | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Minecraft.Client/Gui.cpp b/Minecraft.Client/Gui.cpp index 9a5150f64..f0d44319a 100644 --- a/Minecraft.Client/Gui.cpp +++ b/Minecraft.Client/Gui.cpp @@ -1175,13 +1175,13 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse) } #endif - int yPos = debugTop; - for (const auto& line : lines) - { - fill(debugLeft - 1, yPos - 1, debugLeft + font->width(line) + 1, yPos + 8 + 1, 0x80303030, true); - drawString(font, line, debugLeft, yPos, 0xffffff); - yPos += 10; - } + int yPos = debugTop; + for (const auto &line : lines) + { + drawString(font, line, debugLeft, yPos, 0xffffff); + yPos += 10; + } + glMatrixMode(GL_MODELVIEW); glPopMatrix(); glMatrixMode(GL_PROJECTION); diff --git a/Minecraft.Client/GuiComponent.cpp b/Minecraft.Client/GuiComponent.cpp index 4cfb5e9cd..c6b5f518b 100644 --- a/Minecraft.Client/GuiComponent.cpp +++ b/Minecraft.Client/GuiComponent.cpp @@ -24,7 +24,7 @@ void GuiComponent::vLine(int x, int y0, int y1, int col) fill(x, y0 + 1, x + 1, y1, col); } -void GuiComponent::fill(int x0, int y0, int x1, int y1, int col, bool blend) +void GuiComponent::fill(int x0, int y0, int x1, int y1, int col) { if (x0 < x1) { @@ -54,9 +54,7 @@ void GuiComponent::fill(int x0, int y0, int x1, int y1, int col, bool blend) t->vertex(static_cast(x0), static_cast(y0), static_cast(0)); t->end(); glEnable(GL_TEXTURE_2D); - if (blend == false) { - glDisable(GL_BLEND); - } + glDisable(GL_BLEND); } void GuiComponent::fillGradient(int x0, int y0, int x1, int y1, int col1, int col2) diff --git a/Minecraft.Client/GuiComponent.h b/Minecraft.Client/GuiComponent.h index 6e21f92b6..414966648 100644 --- a/Minecraft.Client/GuiComponent.h +++ b/Minecraft.Client/GuiComponent.h @@ -9,7 +9,7 @@ protected: protected: void hLine(int x0, int x1, int y, int col); void vLine(int x, int y0, int y1, int col); - void fill(int x0, int y0, int x1, int y1, int col, bool blend = false); + void fill(int x0, int y0, int x1, int y1, int col); void fillGradient(int x0, int y0, int x1, int y1, int col1, int col2); public: GuiComponent(); // 4J added