Alexandre Julliard : user32: Fix DrawFocusRect to always invert the destination regardless of the text color .
Alexandre Julliard
julliard at winehq.org
Mon Sep 10 15:22:09 CDT 2012
Module: wine
Branch: master
Commit: 57f869d5573f6c8165d280cbd7b0cf0f238c6d52
URL: http://source.winehq.org/git/wine.git/?a=commit;h=57f869d5573f6c8165d280cbd7b0cf0f238c6d52
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sun Sep 9 11:48:06 2012 +0200
user32: Fix DrawFocusRect to always invert the destination regardless of the text color.
---
dlls/user32/uitools.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/uitools.c b/dlls/user32/uitools.c
index 2a3b9e4..f1ce0d6 100644
--- a/dlls/user32/uitools.c
+++ b/dlls/user32/uitools.c
@@ -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);
More information about the wine-cvs
mailing list