Commit 25e300dc authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Add a null driver implementation for Polyline and Polygon.

parent 95f81d10
......@@ -477,24 +477,27 @@ static BOOL nulldrv_Pie( PHYSDEV dev, INT left, INT top, INT right, INT bottom,
static BOOL nulldrv_PolyPolygon( PHYSDEV dev, const POINT *points, const INT *counts, UINT polygons )
{
/* FIXME: could be implemented with Polygon */
return TRUE;
}
static BOOL nulldrv_PolyPolyline( PHYSDEV dev, const POINT *points, const DWORD *counts, DWORD lines )
{
/* FIXME: could be implemented with Polyline */
return TRUE;
}
static BOOL nulldrv_Polygon( PHYSDEV dev, const POINT *points, INT count )
{
return TRUE;
INT counts[1] = { count };
return PolyPolygon( dev->hdc, points, counts, 1 );
}
static BOOL nulldrv_Polyline( PHYSDEV dev, const POINT *points, INT count )
{
return TRUE;
DWORD counts[1] = { count };
if (count < 0) return FALSE;
return PolyPolyline( dev->hdc, points, counts, 1 );
}
static UINT nulldrv_RealizeDefaultPalette( PHYSDEV dev )
......
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