diff --git a/data/GameManager.js b/data/GameManager.js index 89ca262..31dbfac 100644 --- a/data/GameManager.js +++ b/data/GameManager.js @@ -53,8 +53,6 @@ class EJS_GameManager { return "autosave_interval = 60\n" + "screenshot_directory = /\n" + "block_sram_overwrite = false\n" + - "video_font_enable = false\n" + - "video_scale = 1.0\n" + "video_gpu_screenshot = false\n" + "audio_latency = 96\n" + "video_vsync = true\n" + diff --git a/data/emulator.js b/data/emulator.js index 64b940c..ed35942 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -767,13 +767,6 @@ class EmulatorJS { } this.callEvent("start"); } - onResize() { - this.handleResize(); - setTimeout(this.handleResize.bind(this), 50); - setTimeout(this.handleResize.bind(this), 100); - setTimeout(this.handleResize.bind(this), 500); - setTimeout(this.handleResize.bind(this), 1000); - } bindListeners() { this.createContextMenu(); this.createBottomMenuBar(); @@ -784,7 +777,7 @@ class EmulatorJS { this.addEventListener(this.elements.parent, "mousedown touchstart", (e) => { if (document.activeElement !== this.elements.parent) this.elements.parent.focus(); }) - this.addEventListener(window, "resize", this.onResize.bind(this)); + this.addEventListener(window, "resize", this.handleResize.bind(this)); //this.addEventListener(window, "blur", e => console.log(e), true); //TODO - add "click to make keyboard keys work" message? this.gamepad = new GamepadHandler(); //https://github.com/ethanaobrien/Gamepad this.gamepad.on('connected', (e) => { @@ -1300,7 +1293,6 @@ class EmulatorJS { screen.orientation.lock(this.getCore(true) === "nds" ? "portrait" : "landscape").catch(e => {});; } catch(e) {} } - this.onResize(); }); const exit = addButton("Exit Fullscreen", '', () => { if (document.exitFullscreen) { @@ -1319,7 +1311,6 @@ class EmulatorJS { screen.orientation.unlock(); } catch(e) {} } - this.onResize(); }); exit.style.display = "none";