From 17501083ca15adc9e3f53757b47a961ed2e77e9c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 27 Aug 2015 21:42:44 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15051 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/mTextControl/src/textcontrol.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/mTextControl') diff --git a/plugins/mTextControl/src/textcontrol.cpp b/plugins/mTextControl/src/textcontrol.cpp index e8d25fffea..daf7b6ad71 100644 --- a/plugins/mTextControl/src/textcontrol.cpp +++ b/plugins/mTextControl/src/textcontrol.cpp @@ -106,13 +106,13 @@ LRESULT CALLBACK MTextControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM /// Paint //////////////////////////////////// LRESULT MTextControl_OnPaint(HWND hwnd, WPARAM, LPARAM) { - HDC hdc; PAINTSTRUCT ps; - hdc = BeginPaint(hwnd, &ps); - - RECT rc; - GetClientRect(hwnd, &rc); - FrameRect(hdc, &rc, (HBRUSH)GetStockObject(BLACK_BRUSH)); + HDC hdc = BeginPaint(hwnd, &ps); + { + RECT rc; + GetClientRect(hwnd, &rc); + FrameRect(hdc, &rc, (HBRUSH)GetStockObject(BLACK_BRUSH)); + } SetTextColor(hdc, RGB(0, 0, 0)); SetBkMode(hdc, TRANSPARENT); -- cgit v1.2.3