user32: Fix DrawFocusRect to always invert the destination regardless of the text color.
This commit is contained in:
parent
bdf9a9f9bd
commit
57f869d557
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue