Skip to content

Commit

Permalink
Update emulator (and offline emulator)
Browse files Browse the repository at this point in the history
  • Loading branch information
schierlm committed Dec 6, 2023
1 parent d98201d commit f75931c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions emu.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,15 @@
onclick="emulator.setDimensionsFromEvent(event);">
1344×576
</button>
<button class="preflight checkable size menuitem" value="1344x768"
<button class="preflight checkable size menuitem" value="1344×768"
onclick="emulator.setDimensionsFromEvent(event);">
1344×768
</button>
<button class="preflight checkable size menuitem" value="1280x1024"
<button class="preflight checkable size menuitem" value="1280×1024"
onclick="emulator.setDimensionsFromEvent(event);">
1280×1024
</button>
<button class="preflight checkable size menuitem" value="1400x1050"
<button class="preflight checkable size menuitem" value="1400×1050"
onclick="emulator.setDimensionsFromEvent(event);">
1400×1050
</button>
Expand Down
Binary file modified js-offline-emu.zip
Binary file not shown.
10 changes: 10 additions & 0 deletions webdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ function WebDriver(imageName, width, height, dualSerial, configFile, mem, dismem
$proto.setDimensions = function(width, height, resizeControlBar) {
this.width = width || 1024;
this.height = height || 768;
if (this.width > 1024) {
var ramhint = +document.querySelector(".ramhint").value;
var disphint = +document.querySelector(".disphint").value;
if (disphint < 512) {
document.querySelector(".disphint").value = "512";
if (ramhint < 2) {
document.querySelector(".ramhint").value = "2";
}
}
}
if (resizeControlBar) {
this.ui.resize(this.width, this.height);
}
Expand Down

0 comments on commit f75931c

Please sign in to comment.