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

Resolution makes game disregard width and height in config #3468

Closed
Legomite opened this issue Mar 28, 2018 · 4 comments
Closed

Resolution makes game disregard width and height in config #3468

Legomite opened this issue Mar 28, 2018 · 4 comments

Comments

@Legomite
Copy link

Legomite commented Mar 28, 2018

I have the config looking like this,
width: 800, height: 600, resolution: window.devicePixelRatio,

the window should be 800x600, but upon setting the resolution, it sets it to what I am assuming is my browser pixel width and height, which is 1600x1200.

@kirillbunin
Copy link

If you also set autoResize: true it will resize itself to 800x600

@photonstorm
Copy link
Collaborator

This issue is currently blocked pending development of the Scale Manager, which will begin during the month of May 2018. It will be updated once it has been tested against the new Scale Manager.

@photonstorm
Copy link
Collaborator

photonstorm commented Jul 17, 2018

Resolution in the game config is now applied to the canvas and CSS is used to scale the canvas to the given dimensions, so you no longer need to do it yourself, or use the autoResize option. This is now in the master branch.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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