From c6e26a67d695b40959b6dbc794cadc7798427a4b Mon Sep 17 00:00:00 2001 From: Vladislav Zavjalov Date: Thu, 24 Dec 2009 16:39:51 +0300 Subject: [PATCH] mi/miwideline.c: fix miLineProjectingCap with dy<0 dx!=0 --- mi/miwideline.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/mi/miwideline.c b/mi/miwideline.c index 210a625..39d28ae 100644 --- a/mi/miwideline.c +++ b/mi/miwideline.c @@ -1187,6 +1187,11 @@ miLineProjectingCap (DrawablePtr pDrawable, GCPtr pGC, unsigned long pixel, ya = face->ya; projectXoff = -ya; projectYoff = xa; + if (dy < 0) { + dy = -dy; + dx = -dx; + isLeft = !isLeft; + } if (dx < 0) { right = &rights[1]; -- 1.6.5.2