0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00

Merge pull request #30 from mrspeaker/master

fixed width and height options in Matter.RenderPixi
This commit is contained in:
Liam Brummitt 2014-06-12 23:21:06 +01:00
commit e95e328a04

View file

@ -44,7 +44,7 @@ var RenderPixi = {};
var render = Common.extend(defaults, options); var render = Common.extend(defaults, options);
// init pixi // 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.canvas = render.context.view;
render.stage = new PIXI.Stage(); render.stage = new PIXI.Stage();