Skip to content

Commit 6328fe7

Browse files
Workaround for Chrome 41 issue Canvas + Radeon :
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)
1 parent 5224c9d commit 6328fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/rendering/frame/FrameRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239

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

245245
displayContext.translate(

0 commit comments

Comments
 (0)