X11DRV_SelectPen(): Don't use a pen with half the width.

This commit is contained in:
Uwe Bonnes 2002-11-25 02:45:47 +00:00 committed by Alexandre Julliard
parent 1e6258fca5
commit 47977c4f8b
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ HPEN X11DRV_SelectPen( X11DRV_PDEVICE *physDev, HPEN hpen )
physDev->pen.linejoin = logpen.lopnStyle & PS_JOIN_MASK;
physDev->pen.width = GDI_ROUND((FLOAT)logpen.lopnWidth.x *
dc->xformWorld2Vport.eM11 * 0.5);
dc->xformWorld2Vport.eM11);
if (physDev->pen.width < 0) physDev->pen.width = -physDev->pen.width;
if (physDev->pen.width == 1) physDev->pen.width = 0; /* Faster */
physDev->pen.pixel = X11DRV_PALETTE_ToPhysical( physDev, logpen.lopnColor );