From: kamichi Date: Fri, 1 Feb 2013 12:55:31 +0000 (+0900) Subject: fuxed. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41c4fa6adad91fa86055be6b68c43e011d555744;p=chise%2Fkage.git fuxed. --- diff --git a/engine/kage.js b/engine/kage.js index cc98136..18595de 100755 --- a/engine/kage.js +++ b/engine/kage.js @@ -55,7 +55,7 @@ function Kage(size){ function getEachStrokesOfBuhin(buhin, x1, y1, x2, y2, a1, a2){ var temp = this.getEachStrokes(buhin); var result = new Array(); - var box = getBox(buhin); + var box = this.getBox(buhin); for(var i = 0; i < temp.length; i++){ var sx = a1; @@ -319,7 +319,7 @@ function Kage(size){ a.maxX = 0; a.maxY = 0; - var strokes = getEachStrokes(glyph); + var strokes = this.getEachStrokes(glyph); for(var i = 0; i < strokes.length; i++){ if(strokes[i][0] == 0){ continue; } a.minX = Math.min(a.minX, strokes[i][3]); @@ -366,7 +366,7 @@ function Kage(size){ function drawBuhin(polygons, glyph, x1, y1, x2, y2, sx, sy){ // void var strokes = glyph.split("$"); - var box = getBox(glyph); + var box = this.getBox(glyph); for(var i = 0; i < strokes.length; i++){ var columns = strokes[i].split(":");