[PATCH] Fix selected brush color for caret bitmap creation
Nikolay Sivov
nsivov at codeweavers.com
Sat May 8 13:10:29 CDT 2010
---
dlls/user32/caret.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/caret.c b/dlls/user32/caret.c
index 953a081..308336d 100644
--- a/dlls/user32/caret.c
+++ b/dlls/user32/caret.c
@@ -154,7 +154,7 @@ BOOL WINAPI CreateCaret( HWND hwnd, HBITMAP bitmap, INT width, INT height )
{
HBITMAP hPrevBmp = SelectObject(hMemDC, hBmp);
SetRect( &r, 0, 0, width, height );
- FillRect(hMemDC, &r, ULongToHandle((bitmap ? COLOR_GRAYTEXT : COLOR_WINDOW) + 1));
+ FillRect(hMemDC, &r, bitmap ? GetStockObject(GRAY_BRUSH) : GetStockObject(WHITE_BRUSH));
SelectObject(hMemDC, hPrevBmp);
}
DeleteDC(hMemDC);
--
1.5.6.5
--=-U1JDwmqcF73/4LQdsEdb--
More information about the wine-patches
mailing list