summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-19 16:56:09 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-19 16:56:09 +0000
commite129bab57fb1b3eb8d6adb9c87c490c04cc51adb (patch)
tree49b82c5f09769fcb0e01d1f2392bfc356c639587 /plugins/TabSRMM
parenta6e575cd6bcef8a7ceafc2bd4cc70d1fd8bd9775 (diff)
fix for log icons size
git-svn-id: http://svn.miranda-ng.org/main/trunk@7764 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/chat/main.cpp7
-rw-r--r--plugins/TabSRMM/src/chat/options.cpp1
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/chat/main.cpp b/plugins/TabSRMM/src/chat/main.cpp
index 08b0a877aa..d2523bd726 100644
--- a/plugins/TabSRMM/src/chat/main.cpp
+++ b/plugins/TabSRMM/src/chat/main.cpp
@@ -131,9 +131,6 @@ static void OnCreateModule(MODULEINFO *mi)
static void OnLoadSettings()
{
- LOGFONT lf;
- char szBuf[40];
-
g_Settings.iEventLimitThreshold = db_get_w(NULL, "Chat", "LogLimitThreshold", 20);
g_Settings.dwIconFlags = M.GetDword("Chat", "IconFlags", 0x0000);
g_Settings.bOpenInDefault = M.GetBool("Chat", "DefaultContainer", true);
@@ -161,6 +158,8 @@ static void OnLoadSettings()
replaceStrT(g_Settings.pszLogDir, M.getChatLogPath());
+ g_Settings.LogIconSize = (g_Settings.bScaleIcons) ? 10 : 16;
+
g_Settings.iSplitterY = db_get_w(NULL, "Chat", "splitY", 50);
if (g_Settings.iSplitterY <= 20)
g_Settings.iSplitterY = 50;
@@ -172,6 +171,7 @@ static void OnLoadSettings()
DeleteObject(g_Settings.UserListFonts[CHAT_STATUS_OFFLINE]);
}
+ LOGFONT lf;
pci->LoadMsgDlgFont(18, &lf, NULL);
g_Settings.UserListFonts[CHAT_STATUS_NORMAL] = CreateFontIndirect(&lf);
@@ -186,6 +186,7 @@ static void OnLoadSettings()
g_Settings.iNickListFontHeight = max(M.GetByte("Chat", "NicklistRowDist", 12), (ih > ih2 ? ih : ih2));
for (int i = 0; i < 7; i++) {
+ char szBuf[40];
mir_snprintf(szBuf, 20, "NickColor%d", i);
g_Settings.nickColors[i] = M.GetDword("Chat", szBuf, g_Settings.UserListColors[0]);
}
diff --git a/plugins/TabSRMM/src/chat/options.cpp b/plugins/TabSRMM/src/chat/options.cpp
index 3527fd69ef..2ef1c550c1 100644
--- a/plugins/TabSRMM/src/chat/options.cpp
+++ b/plugins/TabSRMM/src/chat/options.cpp
@@ -545,6 +545,7 @@ INT_PTR CALLBACK DlgProcOptions1(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM
SaveBranch(GetDlgItem(hwndDlg, IDC_CHECKBOXES), branch2, SIZEOF(branch2));
pci->ReloadSettings();
+ pci->MM_IconsChanged();
pci->MM_FontsChanged();
Log_SetStyles();
pci->SM_BroadcastMessage(NULL, GC_SETWNDPROPS, 0, 0, TRUE);