mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
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)
This commit is contained in:
parent
5224c9ddd8
commit
6328fe760f
@ -239,7 +239,7 @@
|
|||||||
|
|
||||||
if (this.canvas.width*this.zoom < this.displayCanvas.width || this.canvas.height*this.zoom < this.displayCanvas.height) {
|
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.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(
|
displayContext.translate(
|
||||||
|
Loading…
Reference in New Issue
Block a user