Divan Burger : comdlg32: Modernize the look of the selected colour box in the colour dialog.
Alexandre Julliard
julliard at winehq.org
Wed Jan 9 07:02:12 CST 2008
Module: wine
Branch: master
Commit: 3a508e605b6f6d4cda750fcd6c2ffbe203474237
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a508e605b6f6d4cda750fcd6c2ffbe203474237
Author: Divan Burger <divan.burger at gmail.com>
Date: Mon Jan 7 19:16:42 2008 +0200
comdlg32: Modernize the look of the selected colour box in the colour dialog.
---
dlls/comdlg32/colordlg.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/dlls/comdlg32/colordlg.c b/dlls/comdlg32/colordlg.c
index b4f3951..74d3357 100644
--- a/dlls/comdlg32/colordlg.c
+++ b/dlls/comdlg32/colordlg.c
@@ -441,16 +441,8 @@ void CC_PaintSelectedColor( HWND hDlg, COLORREF cr )
hBrush = CreateSolidBrush(cr);
if (hBrush)
{
- hBrush = SelectObject(hdc, hBrush) ;
- Rectangle(hdc, rect.left, rect.top, rect.right/2, rect.bottom);
- DeleteObject ( SelectObject(hdc, hBrush) ) ;
- hBrush = CreateSolidBrush( GetNearestColor(hdc, cr) );
- if (hBrush)
- {
- hBrush = SelectObject(hdc, hBrush) ;
- Rectangle(hdc, rect.right/2-1, rect.top, rect.right, rect.bottom);
- DeleteObject(SelectObject(hdc, hBrush)) ;
- }
+ FillRect(hdc, &rect, hBrush);
+ DrawEdge(hdc, &rect, BDR_SUNKENOUTER, BF_RECT);
}
ReleaseDC(hwnd, hdc);
}
More information about the wine-cvs
mailing list