mirror of
https://github.com/db48x/emularity.git
synced 2026-07-28 04:07:11 +00:00
deprecate Emulator.setScale in favor of BaseLoader.setScale
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
var emulator = new Emulator(document.querySelector("#canvas"),
|
||||
null,
|
||||
new NP2Loader(NP2Loader.nativeResolution(512, 342),
|
||||
NP2Loader.scale(2),
|
||||
NP2Loader.emulatorJS("emulators/minivmac.js"),
|
||||
NP2Loader.emulatorWASM("emulators/minivmac.wasm"),
|
||||
NP2Loader.mountZip("minivmac",
|
||||
@@ -54,7 +55,7 @@
|
||||
"examples/test7.dsk")),
|
||||
NP2Loader.extraArgs(["/emulator/test7.dsk"]),
|
||||
));
|
||||
emulator.setScale(3).start({ waitAfterDownloading: true });
|
||||
emulator.start({ waitAfterDownloading: true });
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user