From a9278fc6c2d830894a01ff9654cd3f145e850ff3 Mon Sep 17 00:00:00 2001 From: Mr Speaker Date: Thu, 12 Jun 2014 15:00:18 -0400 Subject: [PATCH] pass width and height options to Pixi webGL renderer --- src/render/RenderPixi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/RenderPixi.js b/src/render/RenderPixi.js index 1ba2f65a..59a9bbe9 100644 --- a/src/render/RenderPixi.js +++ b/src/render/RenderPixi.js @@ -44,7 +44,7 @@ var RenderPixi = {}; var render = Common.extend(defaults, options); // init pixi - render.context = new PIXI.WebGLRenderer(800, 600, render.canvas, false, true); + render.context = new PIXI.WebGLRenderer(render.options.width, render.options.height, render.canvas, false, true); render.canvas = render.context.view; render.stage = new PIXI.Stage();