--- wine/dlls/x11drv/graphics.c 2004-08-12 01:45:34.000000000 +0200 +++ mywine/dlls/x11drv/graphics.c 2005-05-05 11:39:37.000000000 +0200 @@ -1017,12 +1017,9 @@ X11DRV_PaintRgn( X11DRV_PDEVICE *physDev 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 } HeapFree( GetProcessHeap(), 0, points ); - physDev->pen.width = oldwidth; return TRUE; } --- wine/dlls/x11drv/pen.c 2004-01-15 07:19:35.000000000 +0100 +++ mywine/dlls/x11drv/pen.c 2005-05-05 11:43:21.000000000 +0200 @@ -47,7 +47,8 @@ HPEN X11DRV_SelectPen( X11DRV_PDEVICE *p physDev->pen.width = X11DRV_XWStoDS( physDev, logpen.lopnWidth.x ); if (physDev->pen.width < 0) physDev->pen.width = -physDev->pen.width; - if (physDev->pen.width == 1) physDev->pen.width = 0; /* Faster */ + if (physDev->pen.width == 1) physDev->pen.width = 0; /* Faster and more + Windows likeness */ if (hpen == GetStockObject( DC_PEN )) logpen.lopnColor = GetDCPenColor( physDev->hdc ); physDev->pen.pixel = X11DRV_PALETTE_ToPhysical( physDev, logpen.lopnColor );