From f509f43472d3d126bcdd2dd55da34a5eea3b848c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Kvist?= Date: Fri, 18 May 2018 07:42:24 +0200 Subject: [PATCH 1/2] Change offset of clearRect. --- src/tile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tile.js b/src/tile.js index de1eb40d..28977f7d 100644 --- a/src/tile.js +++ b/src/tile.js @@ -358,8 +358,8 @@ $.Tile.prototype = { context.clearRect( position.x + 1, position.y + 1, - size.x - 2, - size.y - 2 + size.x - 1, + size.y - 1 ); } From bbe34e0816d449b4599bfdf97bb836d7602b402a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Kvist?= Date: Mon, 4 Jun 2018 11:16:23 +0200 Subject: [PATCH 2/2] Remove offset for transparent tile. --- src/tile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tile.js b/src/tile.js index 28977f7d..aca41e1c 100644 --- a/src/tile.js +++ b/src/tile.js @@ -356,10 +356,10 @@ $.Tile.prototype = { //clearing only the inside of the rectangle occupied //by the png prevents edge flikering context.clearRect( - position.x + 1, - position.y + 1, - size.x - 1, - size.y - 1 + position.x, + position.y, + size.x, + size.y ); }