use PatBlt and SelectObject instead of Nt functions

svn path=/trunk/; revision=30926
This commit is contained in:
Timo Kreuzer 2007-12-01 01:31:10 +00:00
parent 4bb2dd0e07
commit 6285817948

View file

@ -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;
}