mirror of
https://github.com/reactos/reactos.git
synced 2024-07-30 16:18:43 +00:00
use PatBlt and SelectObject instead of Nt functions
svn path=/trunk/; revision=30926
This commit is contained in:
parent
4bb2dd0e07
commit
6285817948
|
@ -1828,13 +1828,13 @@ FillRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
|
|||
{
|
||||
hbr = GetSysColorBrush((int)hbr - 1);
|
||||
}
|
||||
if ((prevhbr = NtGdiSelectObject(hDC, hbr)) == NULL)
|
||||
if ((prevhbr = SelectObject(hDC, hbr)) == NULL)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
NtGdiPatBlt(hDC, lprc->left, lprc->top, lprc->right - lprc->left,
|
||||
PatBlt(hDC, lprc->left, lprc->top, lprc->right - lprc->left,
|
||||
lprc->bottom - lprc->top, PATCOPY);
|
||||
NtGdiSelectObject(hDC, prevhbr);
|
||||
SelectObject(hDC, prevhbr);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue