From: Koichi KAMICHI Date: Fri, 25 Feb 2005 04:38:32 +0000 (+0000) Subject: Fixed drawing stroke function (type=0, a1=22, a2=0). X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=ca0d408ff68636e081ceab97478bc03cb5a98b69;p=chise%2Fkage.git Fixed drawing stroke function (type=0, a1=22, a2=0). --- 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;