From 358da521bf6c271f3058617d3f495401e7655ba4 Mon Sep 17 00:00:00 2001 From: Koichi KAMICHI Date: Wed, 30 Dec 2009 14:37:26 +0000 Subject: [PATCH] re-fixed bug --- engine/kage.js | 2 +- engine/kagecd.js | 4 ++-- engine/kagedf.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/kage.js b/engine/kage.js index addfc55..7473819 100755 --- a/engine/kage.js +++ b/engine/kage.js @@ -99,7 +99,7 @@ function Kage(size){ if(i != j && (strokesArray[j][0] == 1 || strokesArray[j][3] || strokesArray[j][7]) && strokesArray[j][3] == strokesArray[j][5] && !(strokesArray[i][4] + 1 > strokesArray[j][6] || strokesArray[i][6] - 1 < strokesArray[j][4]) && Math.abs(strokesArray[i][3] - strokesArray[j][3]) < this.kMinWidthT * 4){ - strokesArray[i][1] += (4 - Math.floor(Math.abs(strokesArray[i][3] - strokesArray[j][3]) / this.kMinWidthT)) * 100; + strokesArray[i][1] += (4 - Math.floor(Math.abs(strokesArray[i][3] - strokesArray[j][3]) / this.kMinWidthT)) * 1000; if(strokesArray[i][1] > this.kAdjustTateStep * 1000){ strokesArray[i][1] = strokesArray[i][1] % 1000 + this.kAdjustTateStep * 1000; } diff --git a/engine/kagecd.js b/engine/kagecd.js index b867f57..99a8ab5 100755 --- a/engine/kagecd.js +++ b/engine/kagecd.js @@ -732,9 +732,9 @@ function cdDrawLine(kage, polygons, tx1, ty1, tx2, ty2, ta1, ta2){ y1 = ty1; x2 = tx2; y2 = ty2; - a1 = ta1 % 100; + a1 = ta1 % 1000; a2 = ta2 % 100; - opt1 = Math.floor(ta1 / 100); + opt1 = Math.floor(ta1 / 1000); opt2 = Math.floor(ta2 / 100); kMinWidthT = kage.kMinWidthT - opt1 / 2; diff --git a/engine/kagedf.js b/engine/kagedf.js index 3a8578a..be3cde2 100755 --- a/engine/kagedf.js +++ b/engine/kagedf.js @@ -25,7 +25,7 @@ function dfDrawFont(kage, polygons, a1, a2, a3, x1, y1, x2, y2, x3, y3, x4, y4){ ty1 = y2 - kage.kMage * Math.sin(rad) * v; } cdDrawLine(kage, polygons, x1, y1, tx1, ty1, a2, 1); - cdDrawCurve(kage, polygons, tx1, ty1, x2, y2, x2 - kage.kMage * (((kage.kAdjustTateStep + 4) - Math.floor(a2 / 100)) / (kage.kAdjustTateStep + 4)), y2, 1 + (a2 - a2 % 100), 14); + cdDrawCurve(kage, polygons, tx1, ty1, x2, y2, x2 - kage.kMage * (((kage.kAdjustTateStep + 4) - Math.floor(a2 / 1000)) / (kage.kAdjustTateStep + 4)), y2, 1 + (a2 - a2 % 1000), 14); } else{ cdDrawLine(kage, polygons, x1, y1, x2, y2, a2, a3); -- 1.7.10.4