diff --git a/js/gba.js b/js/gba.js index 5e55628e..52edd064 100644 --- a/js/gba.js +++ b/js/gba.js @@ -84,7 +84,7 @@ GameBoyAdvance.prototype.setCanvas = function(canvas) { this.setCanvasDirect(this.indirectCanvas); var targetContext = canvas.getContext('2d'); this.video.drawCallback = function() { - targetContext.drawImage(self.indirectCanvas, 0, 0, canvas.offsetWidth, canvas.offsetHeight); + targetContext.drawImage(self.indirectCanvas, 0, 0, canvas.width, canvas.height); } } else { this.setCanvasDirect(canvas);