mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[User32]
- Fix select old brush in FillRect. svn path=/trunk/; revision=51186
This commit is contained in:
parent
9e22fe5962
commit
827e75cb89
|
@ -1564,8 +1564,8 @@ FlashWindow(HWND hWnd, BOOL bInvert)
|
||||||
INT WINAPI
|
INT WINAPI
|
||||||
FillRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
|
FillRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
|
||||||
{
|
{
|
||||||
HBRUSH prevhbr;
|
|
||||||
BOOL Ret;
|
BOOL Ret;
|
||||||
|
HBRUSH prevhbr = NULL;
|
||||||
|
|
||||||
/* Select brush if specified */
|
/* Select brush if specified */
|
||||||
if (hbr)
|
if (hbr)
|
||||||
|
@ -1583,7 +1583,7 @@ FillRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
|
||||||
lprc->bottom - lprc->top, PATCOPY);
|
lprc->bottom - lprc->top, PATCOPY);
|
||||||
|
|
||||||
/* Select old brush */
|
/* Select old brush */
|
||||||
if (hbr)
|
if (prevhbr)
|
||||||
SelectObject(hDC, prevhbr);
|
SelectObject(hDC, prevhbr);
|
||||||
|
|
||||||
return (INT)Ret;
|
return (INT)Ret;
|
||||||
|
|
Loading…
Reference in a new issue