mirror of
https://github.com/reactos/reactos.git
synced 2025-01-15 18:43:27 +00:00
Implement W32kFillRgn
svn path=/trunk/; revision=5060
This commit is contained in:
parent
9c041c91d7
commit
aa9708cead
1 changed files with 20 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: region.c,v 1.24 2003/05/24 17:26:39 hbirr Exp $ */
|
/* $Id: region.c,v 1.25 2003/07/10 21:36:39 jimtabor Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <ddk/ntddk.h>
|
#include <ddk/ntddk.h>
|
||||||
|
@ -1642,7 +1642,25 @@ W32kFillRgn(HDC hDC,
|
||||||
HRGN hRgn,
|
HRGN hRgn,
|
||||||
HBRUSH hBrush)
|
HBRUSH hBrush)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
HBRUSH oldhBrush;
|
||||||
|
PROSRGNDATA rgn;
|
||||||
|
|
||||||
|
if( !(rgn = RGNDATA_LockRgn(hRgn)))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
if ((oldhBrush = W32kSelectObject(hDC, hBrush)) == NULL)
|
||||||
|
{
|
||||||
|
RGNDATA_UnlockRgn( hRgn );
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
W32kPatBlt(hDC, rgn->rdh.rcBound.left, rgn->rdh.rcBound.top,
|
||||||
|
rgn->rdh.rcBound.right - rgn->rdh.rcBound.left,
|
||||||
|
rgn->rdh.rcBound.bottom - rgn->rdh.rcBound.top, PATCOPY
|
||||||
|
|
||||||
|
W32kSelectObject(hDC, oldhBrush);
|
||||||
|
RGNDATA_UnlockRgn( hRgn );
|
||||||
|
|
||||||
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
|
|
Loading…
Reference in a new issue