From 80ef772bb3a1c715cf1d411eb621606e453ee341 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Tue, 22 May 2007 03:38:25 +0000 Subject: [PATCH] Fixed line stroke function. --- engine/kagecd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/kagecd.js b/engine/kagecd.js index bfe8ac2..9d69aed 100755 --- a/engine/kagecd.js +++ b/engine/kagecd.js @@ -1112,7 +1112,7 @@ function cdDrawLine(kage, polygons, tx1, ty1, tx2, ty2, ta1, ta2){ } else{ //for others, use x-axis rad = Math.atan((y2 - y1) / (x2 - x1)); - if((Math.abs(y2 - y1) < Math.abs(x2 - x1)) && (a1 != 6) && (a2 != 6)){ //ASAI KAUDO + if((Math.abs(y2 - y1) < Math.abs(x2 - x1)) && (a1 != 6) && (a2 != 6) && !(x1 > x2)){ //ASAI KAUDO poly = new Polygon(4); switch(a1){ //must be 0 or 2 case 0: -- 1.7.10.4