Commit dcddea36 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

user32: Fix selected brush color for caret bitmap creation.

parent 27c85646
...@@ -154,7 +154,7 @@ BOOL WINAPI CreateCaret( HWND hwnd, HBITMAP bitmap, INT width, INT height ) ...@@ -154,7 +154,7 @@ BOOL WINAPI CreateCaret( HWND hwnd, HBITMAP bitmap, INT width, INT height )
{ {
HBITMAP hPrevBmp = SelectObject(hMemDC, hBmp); HBITMAP hPrevBmp = SelectObject(hMemDC, hBmp);
SetRect( &r, 0, 0, width, height ); 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); SelectObject(hMemDC, hPrevBmp);
} }
DeleteDC(hMemDC); DeleteDC(hMemDC);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment