change variables to chat versions

This commit is contained in:
KKNecmi 2026-03-13 07:37:19 +03:00
parent b812f8945b
commit e0fcd8a9be

View file

@ -1136,7 +1136,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
//} //}
glPushMatrix(); glPushMatrix();
glTranslatef(0.0f, static_cast<float>(screenHeightchat - iSafezoneYHalf - iTooltipsYOffset - 16 - 3 + 22) - 24.0f, 0.0f); glTranslatef(0.0f, static_cast<float>(screenHeightchat - iSafezoneYHalfChat - iTooltipsYOffsetChat - 16 - 3 + 22) - 24.0f, 0.0f);
if(bDisplayGui) if(bDisplayGui)
{ {
@ -1156,7 +1156,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
if (alpha > 0) if (alpha > 0)
{ {
int x = iSafezoneXHalf+2; int x = iSafezoneXHalfChat+2;
int y = -(static_cast<int>(i)) * 13 - 19; int y = -(static_cast<int>(i)) * 13 - 19;
if(bTwoPlayerSplitscreen) if(bTwoPlayerSplitscreen)
{ {
@ -1165,7 +1165,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
wstring msg = guiMessages[iPad][i].string; wstring msg = guiMessages[iPad][i].string;
int bgColor = ((alpha / 2) << 24) | (0x404040); int bgColor = ((alpha / 2) << 24) | (0x404040);
this->fill(0, y - bgfirsty, screenWidthchat/fScaleFactorWidth, y + bgsecondy, bgColor); this->fill(0, y - bgfirsty, screenWidthchat/fScaleFactorWidthChat, y + bgsecondy, bgColor);
glEnable(GL_BLEND); glEnable(GL_BLEND);
glPushMatrix(); glPushMatrix();