Don't set the pen width to 1 in X11DRV_PolyLine.

This commit is contained in:
Rein Klazes 2005-05-07 17:54:51 +00:00 committed by Alexandre Julliard
parent c700f90e63
commit ce8c9426eb
1 changed files with 1 additions and 5 deletions

View File

@ -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;
}