From: Koichi KAMICHI Date: Tue, 22 May 2007 03:38:25 +0000 (+0000) Subject: Fixed line stroke function. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80ef772bb3a1c715cf1d411eb621606e453ee341;p=chise%2Fkage.git Fixed line stroke function. --- 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: