Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MajesticWafer authored Oct 19, 2023
1 parent c3ee06a commit 7b50819
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,18 +409,21 @@ function uiUpdateLayout() {
w = h / 192 * 256;
}
left = (window.innerWidth - w) / 2;
top = h;
top = (window.innerHeight - h) / 2;
}

fbSize = [[w, h], [w, h]];
for (var i = 0; i < 2; i++) {
screenCanvas[i].style = 'left:' + left + 'px;top:' + top + 'px;width:' + w + 'px;height:' + h + 'px;';
top += h;
}

var vkLayer = document.getElementById('vk-layer');
vkLayer.style = 'left: 0; top: 0; width: 100%; height: 100%;';

uiAdjustVKLayout();
}


function uiSwitchTo(mode) {
if (mode == uiCurrentMode) {
return
Expand Down

0 comments on commit 7b50819

Please sign in to comment.