Fixed drawing stroke function (type=0, a1=22, a2=0).
authorKoichi KAMICHI <kamichi@fonts.jp>
Fri, 25 Feb 2005 04:38:32 +0000 (04:38 +0000)
committerKoichi KAMICHI <kamichi@fonts.jp>
Fri, 25 Feb 2005 04:38:32 +0000 (04:38 +0000)
kagecgi/kagecd.c

index 17c6a91..202d870 100755 (executable)
@@ -1249,7 +1249,7 @@ void cdDrawLine(double tx1, double ty1, double tx2, double ty2, int ta1, int ta2
                }\r
                else{ //for others, use x-axis\r
                        rad = atan((double)(y2 - y1) / (double)(x2 - x1));\r
-                       if((abs(y2 - y1) < abs(x2 - x1)) && (a1 != 6) && (a2 != 6)){ //ASAI KAUDO\r
+                       if((abs(y2 - y1) < abs(x2 - x1)) && (a1 != 6) && (a2 != 6) && !(a1 == 22 && a2 == 0)){ //ASAI KAUDO\r
                                switch(a1){ //must be 0 or 2\r
                                case 0:\r
                                        poly[0].X = x1 + sin(rad) * kMinWidthY;\r