fix a bug(tome half circle)
authorKoichi KAMICHI <kamichi@fonts.jp>
Tue, 16 Feb 2010 02:51:14 +0000 (02:51 +0000)
committerKoichi KAMICHI <kamichi@fonts.jp>
Tue, 16 Feb 2010 02:51:14 +0000 (02:51 +0000)
engine/kagecd.js

index 99a8ab5..fd80cf8 100755 (executable)
@@ -465,11 +465,11 @@ function cdDrawCurveU(kage, polygons, x1, y1, sx1, sy1, sx2, sy2, x2, y2, ta1, t
         poly = new Polygon();\r
         if(kage.kUseCurve){\r
           // by curve path\r
-          poly.push(x2 - kMinWidthT, y2);\r
-          poly.push(x2 - kMinWidthT, y2 + kMinWidthT, 1);\r
-          poly.push(x2, y2 + kMinWidthT);\r
-          poly.push(x2 + kMinWidthT, y2 + kMinWidthT, 1);\r
+          poly.push(x2, y2 - kMinWidthT);\r
+          poly.push(x2 + kMinWidthT * 0.9, y2 - kMinWidthT * 0.9, 1);\r
           poly.push(x2 + kMinWidthT, y2);\r
+          poly.push(x2 + kMinWidthT * 0.9, y2 + kMinWidthT * 0.9, 1);\r
+          poly.push(x2, y2 + kMinWidthT);\r
         } else {\r
           // by polygon\r
           poly.push(x2, y2 - kMinWidthT);\r