From 3eab86e88f98801a4983c7ed5d08936b81741f3e Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Thu, 22 Apr 2010 05:04:36 +0000 Subject: API standardization cosmetic changes git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@510 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/popwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yapp/popwin.cpp') diff --git a/yapp/popwin.cpp b/yapp/popwin.cpp index 64496c8..010da7a 100644 --- a/yapp/popwin.cpp +++ b/yapp/popwin.cpp @@ -183,7 +183,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa //pwd->barBrush = CreateSolidBrush(pd->colorBack / 2); // make sidebar a dark version of the bg //DWORD darkBg = (((pd->colorBack & 0xff0000) >> 1) & 0xff0000) + (((pd->colorBack & 0xff00) >> 1) & 0xff00) + (((pd->colorBack & 0xff) >> 1) & 0xff); //DWORD darkBg = (pdColorBack >> 1) & 0x7f7f7f; // equivalent to above :) - + DWORD darkBg = pd->colorBack - ((pd->colorBack >> 2) & 0x3f3f3f); // 3/4 of current individual RGB components pwd->barBrush = CreateSolidBrush(darkBg); // make sidebar a dark version of the bg pwd->underlineBrush = CreateSolidBrush(pd->colorBack); // make sidebar a dark version of the bg -- cgit v1.2.3