summaryrefslogtreecommitdiff
path: root/src/modules/utils/colourpicker.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-06 13:58:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-06 13:58:20 +0000
commit46a53191c1ad11a41c948594e972568e62d155b4 (patch)
tree7e57e6f7093fb0de766fe13a933d2f9231433e4d /src/modules/utils/colourpicker.cpp
parent1fe5acae909ea64a1de9ac9f58cae5a3c2d3ad1f (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@332 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils/colourpicker.cpp')
-rw-r--r--src/modules/utils/colourpicker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/utils/colourpicker.cpp b/src/modules/utils/colourpicker.cpp
index 0f2f9bf8f8..29d25a175f 100644
--- a/src/modules/utils/colourpicker.cpp
+++ b/src/modules/utils/colourpicker.cpp
@@ -51,7 +51,7 @@ static LRESULT CALLBACK ColourPickerWndProc(HWND hwnd,UINT message,WPARAM wParam
cc.rgbResult=GetWindowLongPtr(hwnd,0);
cc.lpCustColors=custColours;
cc.Flags=CC_ANYCOLOR|CC_FULLOPEN|CC_RGBINIT;
- if(ChooseColor(&cc)) {
+ if (ChooseColor(&cc)) {
SetWindowLongPtr(hwnd,0,cc.rgbResult);
SendMessage(GetParent(hwnd),WM_COMMAND,MAKEWPARAM(GetDlgCtrlID(hwnd),CPN_COLOURCHANGED),(LPARAM)hwnd);
InvalidateRect(hwnd,NULL,FALSE);
@@ -72,7 +72,7 @@ static LRESULT CALLBACK ColourPickerWndProc(HWND hwnd,UINT message,WPARAM wParam
GetClientRect(hwnd,&rc);
DrawEdge(hdc1,&rc,EDGE_ETCHED,BF_RECT);
InflateRect(&rc,-2,-2);
- if(IsWindowEnabled(hwnd))
+ if (IsWindowEnabled(hwnd))
hBrush=CreateSolidBrush(GetWindowLongPtr(hwnd,0));
else
hBrush=CreateHatchBrush(HS_BDIAGONAL,GetSysColor(COLOR_GRAYTEXT));