Commit 3a508e60 authored by Divan Burger's avatar Divan Burger Committed by Alexandre Julliard

comdlg32: Modernize the look of the selected colour box in the colour dialog.

parent 285c9fc6
...@@ -441,16 +441,8 @@ void CC_PaintSelectedColor( HWND hDlg, COLORREF cr ) ...@@ -441,16 +441,8 @@ void CC_PaintSelectedColor( HWND hDlg, COLORREF cr )
hBrush = CreateSolidBrush(cr); hBrush = CreateSolidBrush(cr);
if (hBrush) if (hBrush)
{ {
hBrush = SelectObject(hdc, hBrush) ; FillRect(hdc, &rect, hBrush);
Rectangle(hdc, rect.left, rect.top, rect.right/2, rect.bottom); DrawEdge(hdc, &rect, BDR_SUNKENOUTER, BF_RECT);
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)) ;
}
} }
ReleaseDC(hwnd, hdc); ReleaseDC(hwnd, hdc);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment