From 7bc2a868b45997363b85a4e4c1784eb5588ffe6e Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 2 Jun 2020 20:38:52 +0800 Subject: [PATCH] Remove 416 from editor --- _server/editor.js | 4 ++++ editor-mobile.html | 8 ++++---- editor.html | 8 ++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/_server/editor.js b/_server/editor.js index ec93c476..5198a509 100644 --- a/_server/editor.js +++ b/_server/editor.js @@ -216,6 +216,10 @@ editor.prototype.init = function (callback) { } var afterCoreReset = function () { + var canvases = document.getElementsByClassName('gameCanvas'); + for (var one in canvases) { + canvases[one].width = canvases[one].height = core.__PIXELS__; + } editor.game.idsInit(core.maps, core.icons.icons); // 初始化图片素材信息 editor.drawInitData(core.icons.icons); // 初始化绘图 diff --git a/editor-mobile.html b/editor-mobile.html index c65c0fa7..19cf4c3c 100644 --- a/editor-mobile.html +++ b/editor-mobile.html @@ -300,15 +300,15 @@
- - + +

- +
diff --git a/editor.html b/editor.html index df6f4682..180330e9 100644 --- a/editor.html +++ b/editor.html @@ -295,8 +295,8 @@
- - + +
@@ -342,7 +342,7 @@

(Ctrl+滚轮放缩,右键置顶)

- +

- +