diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-08 18:40:59 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-08 18:40:59 +0300 |
commit | 615db90328ab27beb166c3db19a7a0326fb1345a (patch) | |
tree | 2c00f741a8322cb2d5dc19bb73305c2397f73b4e /plugins/Scriver/src/chat | |
parent | 6cdf2af0e28710a64d917d981dc8f3fae1bade08 (diff) |
- improperly removed line returned back
- minor code cleaning
Diffstat (limited to 'plugins/Scriver/src/chat')
-rw-r--r-- | plugins/Scriver/src/chat/window.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/Scriver/src/chat/window.cpp b/plugins/Scriver/src/chat/window.cpp index c7e8ce8c4a..aa3746fb5b 100644 --- a/plugins/Scriver/src/chat/window.cpp +++ b/plugins/Scriver/src/chat/window.cpp @@ -80,7 +80,6 @@ static void InitButtons(HWND hwndDlg, SESSION_INFO *si) static void MessageDialogResize(HWND hwndDlg, SESSION_INFO *si, int w, int h)
{
- int logBottom, toolbarTopY;
bool bNick = si->iType != GCW_SERVER && si->bNicklistEnabled;
bool bToolbar = SendMessage(GetParent(hwndDlg), CM_GETTOOLBARSTATUS, 0, 0) != 0;
int hSplitterMinTop = TOOLBAR_HEIGHT + si->minLogBoxHeight, hSplitterMinBottom = si->minEditBoxHeight;
@@ -112,11 +111,8 @@ static void MessageDialogResize(HWND hwndDlg, SESSION_INFO *si, int w, int h) }
HDWP hdwp = BeginDeferWindowPos(5);
- toolbarTopY = bToolbar ? h - si->iSplitterY - toolbarHeight : h - si->iSplitterY;
- if (si->hwndLog != NULL)
- logBottom = toolbarTopY / 2;
- else
- logBottom = toolbarTopY;
+ int toolbarTopY = bToolbar ? h - si->iSplitterY - toolbarHeight : h - si->iSplitterY;
+ int logBottom = (si->hwndLog != NULL) ? toolbarTopY / 2 : toolbarTopY;
hdwp = DeferWindowPos(hdwp, GetDlgItem(hwndDlg, IDC_LOG), 0, 1, 0, bNick ? w - si->iSplitterX - 1 : w - 2, logBottom, SWP_NOZORDER);
hdwp = DeferWindowPos(hdwp, GetDlgItem(hwndDlg, IDC_CHAT_LIST), 0, w - si->iSplitterX + 2, 0, si->iSplitterX - 3, toolbarTopY, SWP_NOZORDER);
|