mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
"Bug fix - When mousing over "Show only chat messages from friends" an 'x' appears without selecting but goes away when highlight fades. Added default variable to 0, like others in menu." by theanomaly18
This commit is contained in:
parent
63fe5a70da
commit
cc90329689
|
@ -975,7 +975,7 @@ int CMenus::MenuImageScan(const char *pName, int IsDir, int DirType, void *pUser
|
|||
MenuImage.m_OrgTexture = pSelf->Graphics()->LoadTextureRaw(Info.m_Width, Info.m_Height, Info.m_Format, Info.m_pData, Info.m_Format, 0);
|
||||
|
||||
unsigned char *d = (unsigned char *)Info.m_pData;
|
||||
int Pitch = Info.m_Width*4;
|
||||
//int Pitch = Info.m_Width*4;
|
||||
|
||||
// create colorless version
|
||||
int Step = Info.m_Format == CImageInfo::FORMAT_RGBA ? 4 : 3;
|
||||
|
|
|
@ -641,7 +641,8 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
|||
// chat messages
|
||||
Left.HSplitTop(5.0f, 0, &Left);
|
||||
Left.HSplitTop(20.0f, &Button, &Left);
|
||||
if(DoButton_CheckBox(&g_Config.m_ClShowChatFriends, Localize("Show only chat messages from friends"), g_Config.m_ClShowChatFriends, &Button))
|
||||
static int s_Friendchat = 0;
|
||||
if(DoButton_CheckBox(&s_Friendchat, Localize("Show only chat messages from friends"), g_Config.m_ClShowChatFriends, &Button))
|
||||
g_Config.m_ClShowChatFriends ^= 1;
|
||||
|
||||
// name plates
|
||||
|
|
Loading…
Reference in a new issue