From 69f5d2afa1304a007e4fe7d9de25f5efbc2bbf4c Mon Sep 17 00:00:00 2001 From: Bryan Elliott Date: Sat, 5 Sep 2020 16:43:36 -0400 Subject: [PATCH] [Issue #1] Fixed render scaling --- js/gba.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);