From ca0d408ff68636e081ceab97478bc03cb5a98b69 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Fri, 25 Feb 2005 04:38:32 +0000 Subject: [PATCH] Fixed drawing stroke function (type=0, a1=22, a2=0). --- kagecgi/kagecd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kagecgi/kagecd.c b/kagecgi/kagecd.c index 17c6a91..202d870 100755 --- a/kagecgi/kagecd.c +++ b/kagecgi/kagecd.c @@ -1249,7 +1249,7 @@ void cdDrawLine(double tx1, double ty1, double tx2, double ty2, int ta1, int ta2 } else{ //for others, use x-axis rad = atan((double)(y2 - y1) / (double)(x2 - x1)); - if((abs(y2 - y1) < abs(x2 - x1)) && (a1 != 6) && (a2 != 6)){ //ASAI KAUDO + if((abs(y2 - y1) < abs(x2 - x1)) && (a1 != 6) && (a2 != 6) && !(a1 == 22 && a2 == 0)){ //ASAI KAUDO switch(a1){ //must be 0 or 2 case 0: poly[0].X = x1 + sin(rad) * kMinWidthY; -- 1.7.10.4