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 )
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);
}
......
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