mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +00:00
use PatBlt and SelectObject instead of Nt functions
svn path=/trunk/; revision=30926
This commit is contained in:
parent
4bb2dd0e07
commit
6285817948
1 changed files with 3 additions and 3 deletions
|
@ -1828,13 +1828,13 @@ FillRect(HDC hDC, CONST RECT *lprc, HBRUSH hbr)
|
||||||
{
|
{
|
||||||
hbr = GetSysColorBrush((int)hbr - 1);
|
hbr = GetSysColorBrush((int)hbr - 1);
|
||||||
}
|
}
|
||||||
if ((prevhbr = NtGdiSelectObject(hDC, hbr)) == NULL)
|
if ((prevhbr = SelectObject(hDC, hbr)) == NULL)
|
||||||
{
|
{
|
||||||
return FALSE;
|
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);
|
lprc->bottom - lprc->top, PATCOPY);
|
||||||
NtGdiSelectObject(hDC, prevhbr);
|
SelectObject(hDC, prevhbr);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue