From aa3ddd5d614d3798fd03e16071907c48187d5135 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Wed, 30 Jul 2008 06:03:59 +0000 Subject: [PATCH] Fixed top-right corner (22). --- engine/kagecd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/kagecd.js b/engine/kagecd.js index d9f2e93..e733c16 100755 --- a/engine/kagecd.js +++ b/engine/kagecd.js @@ -642,11 +642,11 @@ function cdDrawCurve(kage, polygons, x1, y1, x2, y2, x3, y3, a1, a2){ } } else{ //bottom to up - if(x1 == x2){ //is it right? ... no need + if(x1 == x2){ poly = new Polygon(); poly.push(x1 - kage.kMinWidthT, y1); poly.push(x1 + kage.kMinWidthT, y1); - poly.push(x1 - kage.kMinWidthT, y1 + kage.kMinWidthY); + poly.push(x1 + kage.kMinWidthT, y1 - kage.kMinWidthY); polygons.push(poly); } else{ @@ -665,7 +665,7 @@ function cdDrawCurve(kage, polygons, x1, y1, x2, y2, x3, y3, a1, a2){ poly.push(x1, y1 - kage.kMinWidthY - kage.kWidth); poly.push(x1 + kage.kMinWidthT + kage.kWidth, y1 + kage.kMinWidthY); poly.push(x1 + kage.kMinWidthT, y1 + kage.kMinWidthT); - poly.push(x1 - kage.kMinWidthT, y1); + poly.push(x1, y1 + kage.kMinWidthT); polygons.push(poly); } -- 1.7.10.4