diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-19 16:56:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-19 16:56:09 +0000 |
commit | e129bab57fb1b3eb8d6adb9c87c490c04cc51adb (patch) | |
tree | 49b82c5f09769fcb0e01d1f2392bfc356c639587 /plugins/TabSRMM/src/chat/main.cpp | |
parent | a6e575cd6bcef8a7ceafc2bd4cc70d1fd8bd9775 (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/src/chat/main.cpp')
-rw-r--r-- | plugins/TabSRMM/src/chat/main.cpp | 7 |
1 files changed, 4 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]);
}
|