-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turns out that a program that uses emscripten's SDL port to create a "window" (by calling SDL_CreateWindow) gets exactly the canvas size that they requested, and emscripten actually resets the canvas back to this size on certain events (such as window resize). This means that the application must request the scaled size, or explictly resize the canvas using a different API. Since MAME accepts a -resolution command-line argument, I can at least make it request a window of the scaled size. It's not as efficient as letting the browser scale the window, but it works.
- Loading branch information
Showing
3 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters