Fixed top-right corner (22).
authorKoichi KAMICHI <kamichi@fonts.jp>
Wed, 30 Jul 2008 06:03:59 +0000 (06:03 +0000)
committerKoichi KAMICHI <kamichi@fonts.jp>
Wed, 30 Jul 2008 06:03:59 +0000 (06:03 +0000)
engine/kagecd.js

index d9f2e93..e733c16 100755 (executable)
@@ -642,11 +642,11 @@ function cdDrawCurve(kage, polygons, x1, y1, x2, y2, x3, y3, a1, a2){
         }\r
       }\r
       else{ //bottom to up\r
-        if(x1 == x2){ //is it right? ... no need\r
+        if(x1 == x2){\r
           poly = new Polygon();\r
           poly.push(x1 - kage.kMinWidthT, y1);\r
           poly.push(x1 + kage.kMinWidthT, y1);\r
-          poly.push(x1 - kage.kMinWidthT, y1 + kage.kMinWidthY);\r
+          poly.push(x1 + kage.kMinWidthT, y1 - kage.kMinWidthY);\r
           polygons.push(poly);\r
         }\r
         else{\r
@@ -665,7 +665,7 @@ function cdDrawCurve(kage, polygons, x1, y1, x2, y2, x3, y3, a1, a2){
       poly.push(x1, y1 - kage.kMinWidthY - kage.kWidth);\r
       poly.push(x1 + kage.kMinWidthT + kage.kWidth, y1 + kage.kMinWidthY);\r
       poly.push(x1 + kage.kMinWidthT, y1 + kage.kMinWidthT);\r
-      poly.push(x1 - kage.kMinWidthT, y1);\r
+      poly.push(x1, y1 + kage.kMinWidthT);\r
       polygons.push(poly);\r
     }\r
     \r