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

Phaser 2.4.3+ support #5

Open
Owumaro opened this issue Jul 11, 2016 · 1 comment
Open

Phaser 2.4.3+ support #5

Owumaro opened this issue Jul 11, 2016 · 1 comment

Comments

@Owumaro
Copy link
Contributor

Owumaro commented Jul 11, 2016

Starting with Phaser 2.4.3, the Phaser.Canvas.create method has changed :
create(width, height, id) => create(parent, width, height, id, skipPool)

Therefore this plugins doesn't work anymore because of this line :
this.scaledCanvas = Phaser.Canvas.create(this.scaledWidth, this.scaledHeight);

The width value is interpreted as parent argument and the height goes in the width. height gets the default value.
To solve this, I replaced this line with :
this.scaledCanvas = Phaser.Canvas.create(null, this.scaledWidth, this.scaledHeight, null, true);

@beeglebug
Copy link
Owner

Looks good! Please open a pull request with your change and I will get it merged in.

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

2 participants