Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Minecraft.Client/Gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,10 +1178,10 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
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;
}

glMatrixMode(GL_MODELVIEW);
glPopMatrix();
glMatrixMode(GL_PROJECTION);
Expand Down
6 changes: 4 additions & 2 deletions Minecraft.Client/GuiComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
void GuiComponent::fill(int x0, int y0, int x1, int y1, int col, bool blend)
{
if (x0 < x1)
{
Expand Down Expand Up @@ -54,7 +54,9 @@ void GuiComponent::fill(int x0, int y0, int x1, int y1, int col)
t->vertex(static_cast<float>(x0), static_cast<float>(y0), static_cast<float>(0));
t->end();
glEnable(GL_TEXTURE_2D);
glDisable(GL_BLEND);
if (blend == false) {
glDisable(GL_BLEND);
}
}

void GuiComponent::fillGradient(int x0, int y0, int x1, int y1, int col1, int col2)
Expand Down
2 changes: 1 addition & 1 deletion Minecraft.Client/GuiComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class GuiComponent
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);
void fill(int x0, int y0, int x1, int y1, int col, bool blend = false);
void fillGradient(int x0, int y0, int x1, int y1, int col1, int col2);
public:
GuiComponent(); // 4J added
Expand Down
Loading