Skip to content

Commit

Permalink
Fix size change
Browse files Browse the repository at this point in the history
  • Loading branch information
codefrau committed Dec 21, 2023
1 parent acb3a62 commit 28879fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jasmine-b3daccel-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 28879fd

Please sign in to comment.