You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
I think this means that the canvas will resize with the browser window, is this correct?
The text was updated successfully, but these errors were encountered: