Skip to content

Commit

Permalink
dpi is a thing...
Browse files Browse the repository at this point in the history
  • Loading branch information
strseb committed Dec 1, 2023
1 parent 9dd9071 commit 1dadfa6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wasm/embedded.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
}
canvas{
cursor: default !important;
height: 100vh;
width: 100vw;
}
</style>
<script>
Expand All @@ -49,8 +51,8 @@
const canvas = document.querySelector("#qmlcanvas")
requestAnimationFrame(()=>{

canvas.height = window.innerHeight;
canvas.width = window.innerWidth;
canvas.height = window.innerHeight /window.devicePixelRatio;
canvas.width = window.innerWidth / window.devicePixelRatio;
planned_resize = false;
})
}
Expand Down

0 comments on commit 1dadfa6

Please sign in to comment.