mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Apply suggestion from @rtm516
thanks Co-authored-by: rtm516 <rtm516@users.noreply.github.com>
This commit is contained in:
parent
72c14ccbfd
commit
b7e78db272
|
|
@ -1175,13 +1175,13 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int yPos = debugTop;
|
int yPos = debugTop;
|
||||||
for (const auto& line : lines)
|
for (const auto &line : lines)
|
||||||
{
|
{
|
||||||
fill(debugLeft - 1, yPos - 1, debugLeft + font->width(line) + 1, yPos + 8 + 1, 0x80303030, true);
|
fill(debugLeft - 1, yPos - 1, debugLeft + font->width(line) + 1, yPos + 8 + 1, 0x80303030, true);
|
||||||
drawString(font, line, debugLeft, yPos, 0xffffff);
|
drawString(font, line, debugLeft, yPos, 0xffffff);
|
||||||
yPos += 10;
|
yPos += 10;
|
||||||
}
|
}
|
||||||
glMatrixMode(GL_MODELVIEW);
|
glMatrixMode(GL_MODELVIEW);
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
glMatrixMode(GL_PROJECTION);
|
glMatrixMode(GL_PROJECTION);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue