Merge branch 'feature-save-panel' of https://github.com/juliandescottes/piskel into feature-save-panel

This commit is contained in:
jdescottes
2014-02-09 21:10:09 +01:00
5 changed files with 36 additions and 10 deletions

View File

@@ -180,7 +180,7 @@
}
var tileCount = document.createElement("div");
tileCount.className = "tile-overlay tile-count";
tileCount.innerHTML = tileNumber;
tileCount.innerHTML = tileNumber + 1;
previewTileRoot.appendChild(tileCount);

View File

@@ -32,9 +32,11 @@
};
ns.BaseTool.prototype.hideHighlightedPixel = function(overlay) {
overlay.setPixel(this.highlightedPixelCol, this.highlightedPixelRow, Constants.TRANSPARENT_COLOR);
this.highlightedPixelRow = null;
this.highlightedPixelCol = null;
if (this.highlightedPixelRow !== null && this.highlightedPixelCol !== null) {
overlay.setPixel(this.highlightedPixelCol, this.highlightedPixelRow, Constants.TRANSPARENT_COLOR);
this.highlightedPixelRow = null;
this.highlightedPixelCol = null;
}
};

View File

@@ -70,6 +70,9 @@
}
};
ns.BaseSelect.prototype.hideHighlightedPixel = function () {
// not implemented for selection tools
};
/**
* If we mouseover the selection draw inside the overlay frame, show the 'move' cursor