user32: Fix DrawFocusRect to always invert the destination regardless of the text color.

This commit is contained in:
Alexandre Julliard 2012-09-09 11:48:06 +02:00
parent bdf9a9f9bd
commit 57f869d557
1 changed files with 2 additions and 2 deletions

View File

@ -1507,10 +1507,10 @@ BOOL WINAPI DrawFocusRect( HDC hdc, const RECT* rc )
hOldBrush = SelectObject(hdc, GetStockObject(NULL_BRUSH));
lb.lbStyle = BS_SOLID;
lb.lbColor = GetSysColor(COLOR_WINDOWTEXT);
lb.lbColor = 0;
hNewPen = ExtCreatePen(PS_COSMETIC|PS_ALTERNATE, 1, &lb, 0, NULL);
hOldPen = SelectObject(hdc, hNewPen);
oldDrawMode = SetROP2(hdc, R2_XORPEN);
oldDrawMode = SetROP2(hdc, R2_NOT);
oldBkMode = SetBkMode(hdc, TRANSPARENT);
Rectangle(hdc, rc->left, rc->top, rc->right, rc->bottom);