aboutsummaryrefslogtreecommitdiff
path: root/emcclib.js
diff options
context:
space:
mode:
Diffstat (limited to 'emcclib.js')
-rw-r--r--emcclib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcclib.js b/emcclib.js
index c145426..3d9db2f 100644
--- a/emcclib.js
+++ b/emcclib.js
@@ -546,7 +546,7 @@ mergeInto(LibraryManager.library, {
js_canvas_set_size: function(w, h) {
onscreen_canvas.width = w;
offscreen_canvas.width = w;
- resizable_div.style.width = w + "px";
+ resizable_div.style.width = w / (window.devicePixelRatio || 1) + "px";
onscreen_canvas.height = h;
offscreen_canvas.height = h;