From 8d62c5b896a1f86f2c7726b30310d6b1c7f535d5 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Mon, 12 Mar 2012 14:24:00 -0700 Subject: Fix for 2D Canvas runtime Array was not allowing for multiple items. --- assets/CanvasRuntime.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets/CanvasRuntime.js') diff --git a/assets/CanvasRuntime.js b/assets/CanvasRuntime.js index 5caf72ee..445050bc 100644 --- a/assets/CanvasRuntime.js +++ b/assets/CanvasRuntime.js @@ -852,12 +852,12 @@ function RuntimeOval() // translate var xCtr = 0.5*world.getViewportWidth() + this._xOffset, yCtr = 0.5*world.getViewportHeight() + this._yOffset; - var mat = Matrix.create( [ + var mat = [ [ xScale, 0.0, 0.0, xCtr], [ 0.0, yScale, 0.0, yCtr], [ 0.0, 0.0, 1.0, 0.0], [ 0.0, 0.0, 0.0, 1.0] - ] ); + ]; // get a bezier representation of the circle var bezPts = this.circularArcToBezier( [0,0,0], [1,0,0], 2.0*Math.PI ); -- cgit v1.2.3