We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44f69ea commit ab75b1aCopy full SHA for ab75b1a
1 file changed
src/boot/Game.js
@@ -709,8 +709,20 @@ var Game = new Class({
709
* @param {number} width - The new width of the game.
710
* @param {number} height - The new height of the game.
711
*/
712
- resize: function (width, height)
+ resize: function ()
713
{
714
+ var width = this.scaleManager.baseSize.width;
715
+ var height = this.scaleManager.baseSize.height;
716
+
717
+ this.renderer.resize();
718
719
+ // this.input.resize();
720
721
+ this.scene.resize(width, height);
722
723
+ this.events.emit('resize', width, height);
724
725
+ /*
726
this.config.width = width;
727
this.config.height = height;
728
@@ -730,6 +742,7 @@ var Game = new Class({
730
742
this.scene.resize(width, height);
731
743
732
744
this.events.emit('resize', width, height);
745
+ */
733
746
},
734
747
735
748
/**
0 commit comments