[WINESYNC][WORDPAD] paint_ruler(): Use GetSysColorBrush()

Import wine-4.7 commit:
dcd9376ae7

Follow-up to 0.4.15-dev-5248-g be014129a5.
This commit is contained in:
Zebediah Figura 2019-04-19 22:39:14 -05:00 committed by Stanislav Motylkov
parent 0828e16462
commit dee3e6e7cd
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

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