mirror of
https://github.com/reactos/reactos.git
synced 2026-05-22 23:30:07 +08:00
[WINESYNC][WORDPAD] paint_ruler(): Use GetSysColorBrush()
Import wine-4.7 commit:dcd9376ae7Follow-up to 0.4.15-dev-5248-gbe014129a5.
This commit is contained in:
committed by
Stanislav Motylkov
parent
0828e16462
commit
dee3e6e7cd
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user