"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:
oy 2012-07-19 11:11:14 +02:00
parent 63fe5a70da
commit cc90329689
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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