From 28879fdadb3f180b43c48b1df5ad0c8f4db68ad7 Mon Sep 17 00:00:00 2001 From: Vanessa Freudenberg Date: Wed, 20 Dec 2023 16:51:05 -0800 Subject: [PATCH] Fix size change --- jasmine-b3daccel-plugin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jasmine-b3daccel-plugin.js b/jasmine-b3daccel-plugin.js index ea02842..be05282 100644 --- a/jasmine-b3daccel-plugin.js +++ b/jasmine-b3daccel-plugin.js @@ -464,6 +464,8 @@ function B3DAcceleratorPlugin() { b3dxSetViewport: function(renderer, x, y, w, h) { var canvas = renderer.canvas; var scale = this.primHandler.display.initialScale || 1; + canvas.width = w; + canvas.height = h; canvas.style.left = (x * scale) + "px"; canvas.style.top = (y * scale) + "px"; canvas.style.width = (w * scale) + "px";