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 /src/modules/chat | |
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 'src/modules/chat')
-rw-r--r-- | src/modules/chat/chat_opts.cpp | 1 | ||||
-rw-r--r-- | src/modules/chat/log.cpp | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/chat/chat_opts.cpp b/src/modules/chat/chat_opts.cpp index e95ac3d5e7..3cdb866171 100644 --- a/src/modules/chat/chat_opts.cpp +++ b/src/modules/chat/chat_opts.cpp @@ -195,6 +195,7 @@ static void InitSetting(TCHAR** ppPointer, char* pszSetting, TCHAR* pszDefault) void LoadGlobalSettings(void)
{
+ g_Settings->LogIconSize = 10;
g_Settings->bLogLimitNames = db_get_b(NULL, "Chat", "LogLimitNames", 1) != 0;
g_Settings->bShowTime = db_get_b(NULL, "Chat", "ShowTimeStamp", 1) != 0;
g_Settings->bSoundsFocus = db_get_b(NULL, "Chat", "SoundsFocus", 0) != 0;
diff --git a/src/modules/chat/log.cpp b/src/modules/chat/log.cpp index 26a88b35f3..b5703cda2e 100644 --- a/src/modules/chat/log.cpp +++ b/src/modules/chat/log.cpp @@ -483,9 +483,8 @@ void LoadMsgLogBitmaps(void) bih.biSize = sizeof(bih);
bih.biBitCount = 24;
bih.biCompression = BI_RGB;
- bih.biHeight = 10; //GetSystemMetrics(SM_CYSMICON);
+ bih.biHeight = bih.biWidth = g_Settings->LogIconSize;
bih.biPlanes = 1;
- bih.biWidth = 10; //GetSystemMetrics(SM_CXSMICON);
int widthBytes = ((bih.biWidth * bih.biBitCount + 31) >> 5) * 4;
RECT rc;
|