summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-03 23:42:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-03 23:42:31 +0300
commit5440fd6247e19bb413f3119e85bfd8198a0325d8 (patch)
tree3ed4d183fbfff75559f22474738996f7b6e498f2 /src
parent62e2732278293e76cc00ac2f79a81c84bd8630f3 (diff)
groupchat buttons are set too high
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/chat_window.cpp2
-rw-r--r--src/core/stdmsg/src/msgs.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdmsg/src/chat_window.cpp b/src/core/stdmsg/src/chat_window.cpp
index a04ceee016..9d2da4c440 100644
--- a/src/core/stdmsg/src/chat_window.cpp
+++ b/src/core/stdmsg/src/chat_window.cpp
@@ -1236,7 +1236,7 @@ INT_PTR CChatRoomDlg::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
cf.dwMask = CFM_COLOR | CFM_BOLD | CFM_UNDERLINE | CFM_BACKCOLOR;
cf.dwEffects = 0;
cf.crTextColor = g_Settings.MessageAreaColor;
- cf.crBackColor = (COLORREF)db_get_dw(NULL, CHAT_MODULE, "ColorMessageBG", GetSysColor(COLOR_WINDOW));
+ cf.crBackColor = db_get_dw(NULL, CHAT_MODULE, "ColorMessageBG", GetSysColor(COLOR_WINDOW));
SendDlgItemMessage(m_hwnd, IDC_MESSAGE, EM_SETBKGNDCOLOR, 0, db_get_dw(NULL, CHAT_MODULE, "ColorMessageBG", GetSysColor(COLOR_WINDOW)));
SendDlgItemMessage(m_hwnd, IDC_MESSAGE, WM_SETFONT, (WPARAM)g_Settings.MessageAreaFont, MAKELPARAM(TRUE, 0));
SendDlgItemMessage(m_hwnd, IDC_MESSAGE, EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&cf);
diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp
index be52d63040..595a886a20 100644
--- a/src/core/stdmsg/src/msgs.cpp
+++ b/src/core/stdmsg/src/msgs.cpp
@@ -385,7 +385,7 @@ void SetButtonsPos(HWND hwndDlg, bool bIsChat)
GetWindowRect(GetDlgItem(hwndDlg, IDC_SPLITTERY), &rc);
POINT pt = { 0, rc.top };
ScreenToClient(hwndDlg, &pt);
- yPos = pt.y - 2;
+ yPos = pt.y;
}
else yPos = 2;