From d45eb00abc82c73c64191ad4b0c58201ca41e252 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 5 Dec 2011 22:29:46 +0100 Subject: [PATCH] wineps: Fall through to the null driver for Polyline and Polygon. --- dlls/wineps.drv/graphics.c | 18 ------------------ dlls/wineps.drv/init.c | 4 ++-- dlls/wineps.drv/psdrv.h | 2 -- 3 files changed, 2 insertions(+), 22 deletions(-) diff --git a/dlls/wineps.drv/graphics.c b/dlls/wineps.drv/graphics.c index 41f6e91e076..5459ce4f847 100644 --- a/dlls/wineps.drv/graphics.c +++ b/dlls/wineps.drv/graphics.c @@ -350,15 +350,6 @@ BOOL PSDRV_PolyPolyline( PHYSDEV dev, const POINT* pts, const DWORD* counts, DWO } -/*********************************************************************** - * PSDRV_Polyline - */ -BOOL PSDRV_Polyline( PHYSDEV dev, const POINT* pt, INT count ) -{ - return PSDRV_PolyPolyline( dev, pt, (LPDWORD) &count, 1 ); -} - - /*********************************************************************** * PSDRV_PolyPolygon */ @@ -401,15 +392,6 @@ BOOL PSDRV_PolyPolygon( PHYSDEV dev, const POINT* pts, const INT* counts, UINT p } -/*********************************************************************** - * PSDRV_Polygon - */ -BOOL PSDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count ) -{ - return PSDRV_PolyPolygon( dev, pt, &count, 1 ); -} - - /*********************************************************************** * PSDRV_PolyBezier */ diff --git a/dlls/wineps.drv/init.c b/dlls/wineps.drv/init.c index e61df3e979f..9cba84a78cb 100644 --- a/dlls/wineps.drv/init.c +++ b/dlls/wineps.drv/init.c @@ -897,8 +897,8 @@ static const struct gdi_dc_funcs psdrv_funcs = NULL, /* pPolyDraw */ PSDRV_PolyPolygon, /* pPolyPolygon */ PSDRV_PolyPolyline, /* pPolyPolyline */ - PSDRV_Polygon, /* pPolygon */ - PSDRV_Polyline, /* pPolyline */ + NULL, /* pPolygon */ + NULL, /* pPolyline */ NULL, /* pPolylineTo */ PSDRV_PutImage, /* pPutImage */ NULL, /* pRealizeDefaultPalette */ diff --git a/dlls/wineps.drv/psdrv.h b/dlls/wineps.drv/psdrv.h index b86f527cea5..a11048c8630 100644 --- a/dlls/wineps.drv/psdrv.h +++ b/dlls/wineps.drv/psdrv.h @@ -450,8 +450,6 @@ extern BOOL PSDRV_PolyBezier( PHYSDEV dev, const POINT *pts, DWORD count ) DECLS extern BOOL PSDRV_PolyBezierTo( PHYSDEV dev, const POINT *pts, DWORD count ) DECLSPEC_HIDDEN; extern BOOL PSDRV_PolyPolygon( PHYSDEV dev, const POINT* pts, const INT* counts, UINT polygons ) DECLSPEC_HIDDEN; extern BOOL PSDRV_PolyPolyline( PHYSDEV dev, const POINT* pts, const DWORD* counts, DWORD polylines ) DECLSPEC_HIDDEN; -extern BOOL PSDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count ) DECLSPEC_HIDDEN; -extern BOOL PSDRV_Polyline( PHYSDEV dev, const POINT* pt, INT count ) DECLSPEC_HIDDEN; extern DWORD PSDRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINFO *info, const struct gdi_image_bits *bits, struct bitblt_coords *src, struct bitblt_coords *dst, DWORD rop ) DECLSPEC_HIDDEN;