Commit 607733af authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdi32: Use NtGdiPolyPolyDraw for CreatePolyPolygonRgn implementation.

parent 11f09c2d
......@@ -282,6 +282,16 @@ HRGN WINAPI ExtCreateRegion( const XFORM *xform, DWORD count, const RGNDATA *dat
}
/***********************************************************************
* CreatePolyPolygonRgn (GDI32.@)
*/
HRGN WINAPI CreatePolyPolygonRgn( const POINT *points, const INT *counts, INT count, INT mode )
{
ULONG ret = NtGdiPolyPolyDraw( ULongToHandle(mode), points, (const UINT *)counts,
count, NtGdiPolyPolygonRgn );
return ULongToHandle( ret );
}
/***********************************************************************
* CreateRectRgnIndirect (GDI32.@)
*
* Creates a simple rectangular region.
......
......@@ -585,6 +585,10 @@ ULONG WINAPI NtGdiPolyPolyDraw( HDC hdc, const POINT *points, const UINT *counts
ULONG ret;
DC *dc;
if (function == NtGdiPolyPolygonRgn)
return HandleToULong( create_polypolygon_region( points, (const INT *)counts, count,
HandleToULong(hdc), NULL ));
if (!(dc = get_dc_ptr( hdc ))) return FALSE;
update_dc( dc );
......
......@@ -2692,12 +2692,3 @@ HRGN create_polypolygon_region( const POINT *Pts, const INT *Count, INT nbpolygo
HeapFree( GetProcessHeap(), 0, pETEs );
return hrgn;
}
/***********************************************************************
* CreatePolyPolygonRgn (GDI32.@)
*/
HRGN WINAPI CreatePolyPolygonRgn( const POINT *pts, const INT *count, INT nbpolygons, INT mode )
{
return create_polypolygon_region( pts, count, nbpolygons, mode, NULL );
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment