Don't set the pen width to 1 in X11DRV_PolyLine.
This commit is contained in:
parent
c700f90e63
commit
ce8c9426eb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue