Revert "Added Dark Highlight on f3 menu for better visibility"

This reverts commit 72c14ccbfd.
This commit is contained in:
Xenovyy 2026-03-19 19:54:32 -04:00
parent 72c14ccbfd
commit 9a3dfd115f
3 changed files with 10 additions and 12 deletions

View file

@ -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);

View file

@ -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<float>(x0), static_cast<float>(y0), static_cast<float>(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)

View file

@ -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