svnno****@sourc*****
svnno****@sourc*****
2009年 3月 21日 (土) 23:34:37 JST
Revision: 1103 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1103 Author: dhrname Date: 2009-03-21 23:34:37 +0900 (Sat, 21 Mar 2009) Log Message: ----------- _xと_yの変数を復活させた Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-03-21 14:28:03 UTC (rev 1102) +++ branches/04x/046/sie.js 2009-03-21 14:34:37 UTC (rev 1103) @@ -609,9 +609,12 @@ var Fli = F.length; x = F[Fli-2]; y = F[Fli-1]; + var _x, _y; //この変数は初期化されないために必要 for (var j = 1; j < Fli; j += 2) { //CTMで座標変換 - F[j] = parseInt(tma * F[j] + tmc * F[j+1] + tme, 10); - F[j+1] = parseInt(tmb * F[j] + tmd * F[j+1] + tmf, 10); + _x = parseInt(tma * F[j] + tmc * F[j+1] + tme, 10); + _y = parseInt(tmb * F[j] + tmd * F[j+1] + tmf, 10); + F[j] = _x; + F[j+1] = _y; } if (com === "m" && Fli > 3) { //MoveToが複数の座標ならば、2番目以降の座標ペアをLineToとして処理 F.splice(3, 0, "l");