projects
/
chise
/
kage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26a842d
)
Fixed line stroke function.
author
Koichi KAMICHI
<kamichi@fonts.jp>
Tue, 22 May 2007 03:38:25 +0000
(
03:38
+0000)
committer
Koichi KAMICHI
<kamichi@fonts.jp>
Tue, 22 May 2007 03:38:25 +0000
(
03:38
+0000)
engine/kagecd.js
patch
|
blob
|
history
diff --git
a/engine/kagecd.js
b/engine/kagecd.js
index
bfe8ac2
..
9d69aed
100755
(executable)
--- a/
engine/kagecd.js
+++ b/
engine/kagecd.js
@@
-1112,7
+1112,7
@@
function cdDrawLine(kage, polygons, tx1, ty1, tx2, ty2, ta1, ta2){
}
\r
else{ //for others, use x-axis
\r
rad = Math.atan((y2 - y1) / (x2 - x1));
\r
- if((Math.abs(y2 - y1) < Math.abs(x2 - x1)) && (a1 != 6) && (a2 != 6)){ //ASAI KAUDO
\r
+ if((Math.abs(y2 - y1) < Math.abs(x2 - x1)) && (a1 != 6) && (a2 != 6) && !(x1 > x2)){ //ASAI KAUDO
\r
poly = new Polygon(4);
\r
switch(a1){ //must be 0 or 2
\r
case 0:
\r