diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Scriver/src/msgutils.cpp | 27 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdlgother.cpp | 2 |
2 files changed, 12 insertions, 17 deletions
diff --git a/plugins/Scriver/src/msgutils.cpp b/plugins/Scriver/src/msgutils.cpp index 4f4fb2349b..bdf74f2101 100644 --- a/plugins/Scriver/src/msgutils.cpp +++ b/plugins/Scriver/src/msgutils.cpp @@ -620,13 +620,10 @@ void CMsgDialog::UpdateOptions() { GetAvatar(); - UpdateFilterButton(); UpdateStatusBar(); UpdateTitle(); FixTabIcons(); - m_pLog->UpdateOptions(); - // messagebox COLORREF crFore; LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, nullptr, &crFore); @@ -640,20 +637,20 @@ void CMsgDialog::UpdateOptions() m_message.SendMsg(EM_SETBKGNDCOLOR, 0, g_plugin.getDword(SRMSGSET_INPUTBKGCOLOUR, SRMSGDEFSET_INPUTBKGCOLOUR)); m_message.SendMsg(WM_SETFONT, (WPARAM)g_Settings.MessageBoxFont, MAKELPARAM(TRUE, 0)); m_message.SendMsg(EM_SETCHARFORMAT, SCF_ALL, (LPARAM)& cf); - { - // nicklist - int ih = Chat_GetTextPixelSize(L"AQG_glo'", g_Settings.UserListFont, false); - int ih2 = Chat_GetTextPixelSize(L"AQG_glo'", g_Settings.UserListHeadingsFont, false); - int height = db_get_b(0, CHAT_MODULE, "NicklistRowDist", 12); - int font = ih > ih2 ? ih : ih2; + + // nicklist + int ih = Chat_GetTextPixelSize(L"AQG_glo'", g_Settings.UserListFont, false); + int ih2 = Chat_GetTextPixelSize(L"AQG_glo'", g_Settings.UserListHeadingsFont, false); + int height = db_get_b(0, CHAT_MODULE, "NicklistRowDist", 12); + int font = ih > ih2 ? ih : ih2; - // make sure we have space for icon! - if (Chat::bShowContactStatus) - font = font > 16 ? font : 16; + // make sure we have space for icon! + if (Chat::bShowContactStatus) + font = font > 16 ? font : 16; + + m_nickList.SendMsg(LB_SETITEMHEIGHT, 0, height > font ? height : font); + InvalidateRect(m_nickList.GetHwnd(), nullptr, TRUE); - m_nickList.SendMsg(LB_SETITEMHEIGHT, 0, height > font ? height : font); - InvalidateRect(m_nickList.GetHwnd(), nullptr, TRUE); - } m_message.SendMsg(EM_REQUESTRESIZE, 0, 0); CSuper::UpdateOptions(); diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index ce2a2d32e6..f8d98cd9a1 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -2589,8 +2589,6 @@ void CMsgDialog::UpdateOptions() m_nickList.SetItemHeight(0, g_Settings.iNickListFontHeight);
InvalidateRect(m_nickList.GetHwnd(), nullptr, TRUE);
- UpdateFilterButton();
-
CSuper::UpdateOptions();
}
|