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] 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 ); }