From ce8c9426ebd3a170e827602d13e19a5ec3f2c868 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Sat, 7 May 2005 17:54:51 +0000 Subject: [PATCH] Don't set the pen width to 1 in X11DRV_PolyLine. --- dlls/x11drv/graphics.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dlls/x11drv/graphics.c b/dlls/x11drv/graphics.c index cd06e0b3cf0..7a15182209b 100644 --- a/dlls/x11drv/graphics.c +++ b/dlls/x11drv/graphics.c @@ -1017,12 +1017,9 @@ X11DRV_PaintRgn( X11DRV_PDEVICE *physDev, HRGN hrgn ) BOOL X11DRV_Polyline( X11DRV_PDEVICE *physDev, const POINT* pt, INT count ) { - INT oldwidth; - register int i; + int i; XPoint *points; - if((oldwidth = physDev->pen.width) == 0) physDev->pen.width = 1; - if (!(points = HeapAlloc( GetProcessHeap(), 0, sizeof(XPoint) * count ))) { WARN("No memory to convert POINTs to XPoints!\n"); @@ -1047,7 +1044,6 @@ X11DRV_Polyline( X11DRV_PDEVICE *physDev, const POINT* pt, INT count ) } HeapFree( GetProcessHeap(), 0, points ); - physDev->pen.width = oldwidth; return TRUE; }