Commit b2e70ed0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdi32: Move region helper functions to objects.c.

parent 0a42d6a9
...@@ -251,3 +251,31 @@ HRGN WINAPI ExtCreateRegion( const XFORM *xform, DWORD count, const RGNDATA *dat ...@@ -251,3 +251,31 @@ HRGN WINAPI ExtCreateRegion( const XFORM *xform, DWORD count, const RGNDATA *dat
return NtGdiExtCreateRegion( xform, count, data ); return NtGdiExtCreateRegion( xform, count, data );
} }
/***********************************************************************
* CreateRectRgnIndirect (GDI32.@)
*
* Creates a simple rectangular region.
*/
HRGN WINAPI CreateRectRgnIndirect( const RECT* rect )
{
return NtGdiCreateRectRgn( rect->left, rect->top, rect->right, rect->bottom );
}
/***********************************************************************
* CreateEllipticRgnIndirect (GDI32.@)
*
* Creates an elliptical region.
*/
HRGN WINAPI CreateEllipticRgnIndirect( const RECT *rect )
{
return NtGdiCreateEllipticRgn( rect->left, rect->top, rect->right, rect->bottom );
}
/***********************************************************************
* CreatePolygonRgn (GDI32.@)
*/
HRGN WINAPI CreatePolygonRgn( const POINT *points, INT count, INT mode )
{
return CreatePolyPolygonRgn( points, &count, 1, mode );
}
...@@ -623,24 +623,6 @@ HRGN WINAPI NtGdiCreateRectRgn( INT left, INT top, INT right, INT bottom ) ...@@ -623,24 +623,6 @@ HRGN WINAPI NtGdiCreateRectRgn( INT left, INT top, INT right, INT bottom )
/*********************************************************************** /***********************************************************************
* CreateRectRgnIndirect (GDI32.@)
*
* Creates a simple rectangular region.
*
* PARAMS
* rect [I] Coordinates of rectangular region.
*
* RETURNS
* Success: Handle to region.
* Failure: NULL.
*/
HRGN WINAPI CreateRectRgnIndirect( const RECT* rect )
{
return NtGdiCreateRectRgn( rect->left, rect->top, rect->right, rect->bottom );
}
/***********************************************************************
* NtGdiSetRectRgn (win32u.@) * NtGdiSetRectRgn (win32u.@)
* *
* Sets a region to a simple rectangular region. * Sets a region to a simple rectangular region.
...@@ -823,28 +805,6 @@ HRGN WINAPI NtGdiCreateEllipticRgn( INT left, INT top, INT right, INT bottom ) ...@@ -823,28 +805,6 @@ HRGN WINAPI NtGdiCreateEllipticRgn( INT left, INT top, INT right, INT bottom )
/*********************************************************************** /***********************************************************************
* CreateEllipticRgnIndirect (GDI32.@)
*
* Creates an elliptical region.
*
* PARAMS
* rect [I] Pointer to bounding rectangle of the ellipse.
*
* RETURNS
* Success: Handle to region.
* Failure: NULL.
*
* NOTES
* This is a special case of CreateRoundRectRgn() where the width of the
* ellipse at each corner is equal to the width the rectangle and
* the same for the height.
*/
HRGN WINAPI CreateEllipticRgnIndirect( const RECT *rect )
{
return NtGdiCreateEllipticRgn( rect->left, rect->top, rect->right, rect->bottom );
}
/***********************************************************************
* NtGdiGetRegionData (win32u.@) * NtGdiGetRegionData (win32u.@)
* *
* Retrieves the data that specifies the region. * Retrieves the data that specifies the region.
...@@ -2741,12 +2701,3 @@ HRGN WINAPI CreatePolyPolygonRgn( const POINT *pts, const INT *count, INT nbpoly ...@@ -2741,12 +2701,3 @@ HRGN WINAPI CreatePolyPolygonRgn( const POINT *pts, const INT *count, INT nbpoly
{ {
return create_polypolygon_region( pts, count, nbpolygons, mode, NULL ); return create_polypolygon_region( pts, count, nbpolygons, mode, NULL );
} }
/***********************************************************************
* CreatePolygonRgn (GDI32.@)
*/
HRGN WINAPI CreatePolygonRgn( const POINT *points, INT count, INT mode )
{
return create_polypolygon_region( points, &count, 1, 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