high-dpi support
This commit is contained in:
parent
5be27d7bab
commit
69d8b0d2be
|
@ -26,6 +26,10 @@ async function main (id) {
|
|||
|
||||
// New v86 instance
|
||||
window.emulator = new V86Starter(opts)
|
||||
|
||||
//high-dpi support
|
||||
var scale = window.devicePixelRatio;
|
||||
window.emulator.screen_adapter.set_scale(scale,scale);
|
||||
|
||||
// Restore state. We can't do this right away.
|
||||
setTimeout(async () => {
|
||||
|
|
Loading…
Reference in a new issue