Alexandre Julliard : wineps: Fall through to the null driver for Polyline and Polygon.

Alexandre Julliard julliard at winehq.org
Tue Dec 6 15:46:17 CST 2011


Module: wine
Branch: master
Commit: d45eb00abc82c73c64191ad4b0c58201ca41e252
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d45eb00abc82c73c64191ad4b0c58201ca41e252

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Dec  5 22:29:46 2011 +0100

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 41f6e91..5459ce4 100644
--- a/dlls/wineps.drv/graphics.c
+++ b/dlls/wineps.drv/graphics.c
@@ -351,15 +351,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
  */
 BOOL PSDRV_PolyPolygon( PHYSDEV dev, const POINT* pts, const INT* counts, UINT polygons )
@@ -402,15 +393,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
  */
 BOOL PSDRV_PolyBezier( PHYSDEV dev, const POINT *pts, DWORD count )
diff --git a/dlls/wineps.drv/init.c b/dlls/wineps.drv/init.c
index e61df3e..9cba84a 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 b86f527..a11048c 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;




More information about the wine-cvs mailing list