fix background opacity & heigth

This commit is contained in:
KKNecmi 2026-03-06 23:44:52 +03:00
parent 3106895149
commit 7d755029d1
3 changed files with 2 additions and 10 deletions

View file

@ -994,14 +994,14 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
if (alpha > 0)
{
int x = iSafezoneXHalf+2;
int y = -(static_cast<int>(i)) * 9 - 10;
int y = -(static_cast<int>(i)) * 9 - 20;
if(bTwoPlayerSplitscreen)
{
y+= iHeightOffset;
}
wstring msg = guiMessages[iPad][i].string;
int bgColor = ((alpha / 4) << 24) | (0x404040);
int bgColor = ((alpha / 2) << 24) | (0x404040);
this->fill(0, y - 1, screenWidth/fScaleFactorWidth, y + 8, bgColor);
glEnable(GL_BLEND);

View file

@ -409,10 +409,4 @@ void KeyboardMouseInput::ClearCharBuffer()
m_charBufferTail = 0;
}
bool KeyboardMouseInput::IsGameInFront()
{
HWND InFrontWindow = GetForegroundWindow();
return (InFrontWindow == g_hWnd);
}
#endif // _WINDOWS64

View file

@ -139,8 +139,6 @@ private:
wchar_t m_charBuffer[CHAR_BUFFER_SIZE];
int m_charBufferHead;
int m_charBufferTail;
bool IsGameInFront();
};
extern KeyboardMouseInput g_KBMInput;