Skip to content

Commit

Permalink
incorporate miensol's fix for retina #15
Browse files Browse the repository at this point in the history
  • Loading branch information
mrflix committed Jul 9, 2015
1 parent 28c1364 commit b545b5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extension/chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ var dimensions = {
this.ctx = this.canvas.getContext('2d');

// adjust the canvas size to the image size
this.canvas.width = this.image.width;
this.canvas.height = this.image.height;
this.canvas.width = this.tab.width;
this.canvas.height = this.tab.height;

// draw the image to the canvas
this.ctx.drawImage(this.image, 0, 0);
this.ctx.drawImage(this.image, 0, 0, this.canvas.width, this.canvas.height);

// read out the image data from the canvas
var imgData = this.ctx.getImageData(0, 0, this.canvas.width, this.canvas.height).data;
Expand Down

0 comments on commit b545b5f

Please sign in to comment.