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

Resize Canvas Does Not Work #3

Open
johnjelinek opened this issue Jul 14, 2013 · 3 comments
Open

Resize Canvas Does Not Work #3

johnjelinek opened this issue Jul 14, 2013 · 3 comments

Comments

@johnjelinek
Copy link

I think this means that the canvas will resize with the browser window, is this correct?

@osen
Copy link
Owner

osen commented Jul 14, 2013

Currently it is hard coded to 800x600 in src/mutiny/Application.cpp.

I will add a Screen::setResolution shortly which will enable you to set your own resolution. As for automatically re-sizing the canvas, I might have to have a look at what flexibility Emscripten's SDL wrapper gives me. I am not sure if it actually sends resize events yet.

@johnjelinek
Copy link
Author

Ok, thanks for the update. Is that what Resize Canvas was supposed to mean: Auto-resize on window resize?

@osen
Copy link
Owner

osen commented Jul 16, 2014

Screen::setResolution(int width, int height, bool fullscreen, int preferredRefreshRate) will now set the HTML canvas size when running in a web browser (or the window size when running as an .exe)

Note: fullscreen and preferredRefreshRate are currently ignored.

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