optimize lastUsed

This commit is contained in:
ckcz123 committed 2019-12-31 13:23:55 +08:00
1 parent d1ff3662a2
commit 90e8980adc
3 files changed
+9 -3

No files matched your search

+7
View File
@@ -150,6 +150,13 @@ body {
height: 416px;
}
#lastUsedDiv {
height: auto;
bottom: 0;
margin-top: 20px;
overflow: hidden;
}
#mid .tools {
position: absolute;
width: 425px;
-1
View File
@@ -406,7 +406,6 @@ editor.prototype.updateLastUsedMap = function () {
ctx.lineWidth = 4;
for (var i = 0; i < editor.uivalues.lastUsed.length; ++i) {
var x = i % core.__SIZE__, y = parseInt(i / core.__SIZE__);
if (y >= 5) break;
var info = editor.uivalues.lastUsed[i];
if (!info || !info.images) continue;
if (info.isTile) {