Skip to content

Commit

Permalink
Workaround for Chrome 41 issue Canvas + Radeon :
Browse files Browse the repository at this point in the history
Issue opened at https://code.google.com/p/chromium/issues/detail?id=469906
Workaround in FrameRenderer.js is to decrease the width+height of the
fillRect of 1 pixel.
Issue seems to impact only Radeon users (not sure if all cards are
impacted)
  • Loading branch information
juliandescottes committed Mar 24, 2015
1 parent 5224c9d commit 6328fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/rendering/frame/FrameRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@

if (this.canvas.width*this.zoom < this.displayCanvas.width || this.canvas.height*this.zoom < this.displayCanvas.height) {
displayContext.fillStyle = Constants.ZOOMED_OUT_BACKGROUND_COLOR;
displayContext.fillRect(0,0,this.displayCanvas.width, this.displayCanvas.height);
displayContext.fillRect(0,0,this.displayCanvas.width - 1, this.displayCanvas.height - 1);
}

displayContext.translate(
Expand Down

0 comments on commit 6328fe7

Please sign in to comment.