mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[WINESYNC][WORDPAD] paint_ruler(): Use GetSysColorBrush()
Import wine-4.7 commit:dcd9376ae7
Follow-up to 0.4.15-dev-5248-gbe014129a5
.
This commit is contained in:
parent
0828e16462
commit
dee3e6e7cd
1 changed files with 1 additions and 3 deletions
|
@ -381,10 +381,9 @@ static void paint_ruler(HWND hWnd, LONG EditLeftmost, BOOL NewMetrics)
|
|||
HDC hdcPrint = make_dc();
|
||||
RECT printRect = get_print_rect(hdcPrint);
|
||||
RECT drawRect;
|
||||
HBRUSH hBrush = CreateSolidBrush(GetSysColor(COLOR_MENU));
|
||||
|
||||
GetClientRect(hWnd, &drawRect);
|
||||
FillRect(hdc, &drawRect, hBrush);
|
||||
FillRect(hdc, &drawRect, GetSysColorBrush(COLOR_MENU));
|
||||
|
||||
InflateRect(&drawRect, 0, -3);
|
||||
drawRect.left = EditLeftmost;
|
||||
|
@ -404,7 +403,6 @@ static void paint_ruler(HWND hWnd, LONG EditLeftmost, BOOL NewMetrics)
|
|||
add_ruler_units(hdc, &drawRect, NewMetrics, EditLeftmost);
|
||||
|
||||
SelectObject(hdc, GetStockObject(BLACK_BRUSH));
|
||||
DeleteObject(hBrush);
|
||||
DeleteDC(hdcPrint);
|
||||
EndPaint(hWnd, &ps);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue