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

This commit is contained in:
Alexandre Julliard 2011-12-05 22:29:16 +01:00
parent 95f81d10c9
commit 25e300dcad
1 changed files with 7 additions and 4 deletions

View File

@ -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 ) static BOOL nulldrv_PolyPolygon( PHYSDEV dev, const POINT *points, const INT *counts, UINT polygons )
{ {
/* FIXME: could be implemented with Polygon */
return TRUE; return TRUE;
} }
static BOOL nulldrv_PolyPolyline( PHYSDEV dev, const POINT *points, const DWORD *counts, DWORD lines ) static BOOL nulldrv_PolyPolyline( PHYSDEV dev, const POINT *points, const DWORD *counts, DWORD lines )
{ {
/* FIXME: could be implemented with Polyline */
return TRUE; return TRUE;
} }
static BOOL nulldrv_Polygon( PHYSDEV dev, const POINT *points, INT count ) 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 ) 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 ) static UINT nulldrv_RealizeDefaultPalette( PHYSDEV dev )