3 Commits
Author SHA1 Message Date
Daniel Brooks 8ad749e9e7 deprecate Emulator.setScale in favor of BaseLoader.setScale 2019-07-15 08:34:07 -07:00
Daniel Brooks e4388d12fa fix scaling at least for MAME
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.
2019-07-14 13:00:03 -07:00
Daniel Brooks b08d9bbec5 add support for PCE emulators, particularly macplus
PCE supports several other personal computers of the era, but only
macplus is tested so far.
2017-04-03 22:08:46 -07:00