summaryrefslogtreecommitdiff
path: root/src/modules/utils/colourpicker.cpp
diff options
context:
space:
mode:
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));