From 6328fe760f879657caa16c575e4679efdfa90da5 Mon Sep 17 00:00:00 2001 From: jdescottes Date: Tue, 24 Mar 2015 16:02:47 +0100 Subject: [PATCH] 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) --- src/js/rendering/frame/FrameRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/rendering/frame/FrameRenderer.js b/src/js/rendering/frame/FrameRenderer.js index 7738d3cf..4514534e 100644 --- a/src/js/rendering/frame/FrameRenderer.js +++ b/src/js/rendering/frame/FrameRenderer.js @@ -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(