mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
fix background opacity & heigth
This commit is contained in:
parent
3106895149
commit
7d755029d1
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -409,10 +409,4 @@ void KeyboardMouseInput::ClearCharBuffer()
|
|||
m_charBufferTail = 0;
|
||||
}
|
||||
|
||||
bool KeyboardMouseInput::IsGameInFront()
|
||||
{
|
||||
HWND InFrontWindow = GetForegroundWindow();
|
||||
return (InFrontWindow == g_hWnd);
|
||||
}
|
||||
|
||||
#endif // _WINDOWS64
|
||||
|
|
|
|||
|
|
@ -139,8 +139,6 @@ private:
|
|||
wchar_t m_charBuffer[CHAR_BUFFER_SIZE];
|
||||
int m_charBufferHead;
|
||||
int m_charBufferTail;
|
||||
|
||||
bool IsGameInFront();
|
||||
};
|
||||
|
||||
extern KeyboardMouseInput g_KBMInput;
|
||||
|
|
|
|||
Loading…
Reference in a new issue