Bug 28791: ensure that dashes value is not 0 for PS_USERSTYLE linestyles
damian dixon
damian.dixon at gmail.com
Tue Oct 18 16:07:27 CDT 2011
---
dlls/winex11.drv/pen.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/pen.c b/dlls/winex11.drv/pen.c
index b677515..71b1bea 100644
--- a/dlls/winex11.drv/pen.c
+++ b/dlls/winex11.drv/pen.c
@@ -108,7 +108,7 @@ HPEN X11DRV_SelectPen( PHYSDEV dev, HPEN hpen )
case PS_USERSTYLE:
physDev->pen.dash_len = min(elp->elpNumEntries, MAX_DASHLEN);
for(i = 0; i < physDev->pen.dash_len ; i++)
- physDev->pen.dashes[i] = min(elp->elpStyleEntry[i], 255);
+ physDev->pen.dashes[i] = min(elp->elpStyleEntry[i], 255) ? min(elp->elpStyleEntry[i], 255) : 1;
break;
default:
physDev->pen.dash_len = 0;
--
1.6.4.2
More information about the wine-patches
mailing list