Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't switch to fullScreen in Phaser 1.2 #478

Closed
UnlimitedX opened this issue Feb 24, 2014 · 2 comments
Closed

Can't switch to fullScreen in Phaser 1.2 #478

UnlimitedX opened this issue Feb 24, 2014 · 2 comments

Comments

@UnlimitedX
Copy link

Here the issue when pressing F2:
Uncaught TypeError: Cannot set property 'imageSmoothingEnabled' of null phaser.min.js:12

Here the code:
this.F2Key.onDown.add(function() {
Jiun.game.scale.fullScreenScaleMode = Phaser.StageScaleMode.SHOW_ALL;
Jiun.game.scale.startFullScreen(false);
}, this);

All was working very well in phaser 1.1.x.

@negue
Copy link

negue commented Feb 24, 2014

Got the same error, I just removed the "false" within "startFullScreen" then it worked.

@photonstorm
Copy link
Collaborator

This should work fine now. It won't try and set anti-aliasing on the context unless you're running in Canvas 2D and not WebGL.

indiejones pushed a commit to indiejones/phaser that referenced this issue Feb 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants