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