From 18a91339f2d9e1449887f5d993ab2f038ff56833 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 5 Mar 2015 22:14:09 +0000 Subject: TabSRMM: code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@12344 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/msgdlgutils.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp') diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index 9d7e81d12e..6be4a99bd9 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -1533,10 +1533,7 @@ int TSAPI MsgWindowDrawHandler(WPARAM wParam, LPARAM lParam, TWindowData *dat) SelectClipRgn(hdcDraw, clipRgn); HBRUSH hbr = CreateSolidBrush(CSkin::m_avatarBorderClr); - if (bPanelPic) - FrameRgn(dis->hDC, clipRgn, hbr, 1, 1); - else - FrameRgn(hdcDraw, clipRgn, hbr, 1, 1); + FrameRgn(hdcDraw, clipRgn, hbr, 1, 1); DeleteObject(hbr); DeleteObject(clipRgn); } @@ -1667,7 +1664,7 @@ void TSAPI LoadOverrideTheme(TContainerData *pContainer) pContainer->theme.fontColors = (COLORREF *)mir_alloc(sizeof(COLORREF) * (MSGDLGFONTCOUNT + 2)); pContainer->theme.rtfFonts = (char *)mir_alloc((MSGDLGFONTCOUNT + 2) * RTFCACHELINESIZE); - ReadThemeFromINI(pContainer->szAbsThemeFile, pContainer, bReadTemplates ? 0 : 1, THEME_READ_ALL); + ReadThemeFromINI(pContainer->szAbsThemeFile, pContainer, 0, THEME_READ_ALL); pContainer->theme.left_indent *= 15; pContainer->theme.right_indent *= 15; pContainer->theme.isPrivate = true; -- cgit v1.2.3