Skip to content

Commit

Permalink
pass width and height options to Pixi webGL renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
mrspeaker committed Jun 12, 2014
1 parent d6cbd07 commit a9278fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/RenderPixi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit a9278fc

Please sign in to comment.