Skip to content

Commit

Permalink
[Issue #1] Fixed render scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
Fordi committed Sep 5, 2020
1 parent 387e902 commit 69f5d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/gba.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 69f5d2a

Please sign in to comment.