diff --git a/executor-wasm/index.html b/executor-wasm/index.html index 4c89676..c9ada3a 100644 --- a/executor-wasm/index.html +++ b/executor-wasm/index.html @@ -35,8 +35,10 @@ function resize(canvasObj) { canvasObj.style = null; - canvasObj.width = window.screen.width; - canvasObj.height = window.screen.height; + canvasObj.width = window.screen.width * window.devicePixelRatio; + canvasObj.height = window.screen.height * window.devicePixelRatio; + canvasObj.style.width = window.screen.width + "px"; + canvasObj.style.height = window.screen.widheightth + "px"; }