机关门 & 读档缩略图
This commit is contained in:
parent
dc1ba40454
commit
364101adfa
@ -1835,19 +1835,18 @@ maps.prototype._drawThumbnail_drawToTarget = function (floorId, options) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// 只绘制可见窗口
|
// 只绘制可见窗口
|
||||||
|
var ratio = core.domStyle.isVertical ? core.domStyle.ratio : core.domStyle.scale;
|
||||||
if (options.v2) {
|
if (options.v2) {
|
||||||
core.drawImage(ctx, tempCanvas.canvas, 0, 0, core.__PIXELS__ * core.domStyle.ratio, core.__PIXELS__ * core.domStyle.ratio, x, y, size, size);
|
core.drawImage(ctx, tempCanvas.canvas, 0, 0, core.__PIXELS__ * ratio, core.__PIXELS__ * ratio, x, y, size, size);
|
||||||
} else {
|
} else {
|
||||||
var offsetX = core.clamp(centerX - core.__HALF_SIZE__, 0, width - core.__SIZE__),
|
var offsetX = core.clamp(centerX - core.__HALF_SIZE__, 0, width - core.__SIZE__),
|
||||||
offsetY = core.clamp(centerY - core.__HALF_SIZE__, 0, height - core.__SIZE__);
|
offsetY = core.clamp(centerY - core.__HALF_SIZE__, 0, height - core.__SIZE__);
|
||||||
var scale = core.domStyle.scale;
|
|
||||||
if (options.noHD) {
|
if (options.noHD) {
|
||||||
scale = 1;
|
|
||||||
core.drawImage(ctx, tempCanvas.canvas, offsetX * 32, offsetY * 32, core.__PIXELS__, core.__PIXELS__, x, y, size, size);
|
core.drawImage(ctx, tempCanvas.canvas, offsetX * 32, offsetY * 32, core.__PIXELS__, core.__PIXELS__, x, y, size, size);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
core.drawImage(ctx, tempCanvas.canvas, offsetX * 32 * core.domStyle.ratio, offsetY * 32 * core.domStyle.ratio, core.__PIXELS__ * core.domStyle.ratio, core.__PIXELS__ * core.domStyle.ratio, x, y, size, size);
|
core.drawImage(ctx, tempCanvas.canvas, offsetX * 32 * ratio, offsetY * 32 * ratio, core.__PIXELS__ * ratio, core.__PIXELS__ * ratio, x, y, size, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -669,7 +669,7 @@ ui.prototype.closePanel = function () {
|
|||||||
}
|
}
|
||||||
this.clearUI();
|
this.clearUI();
|
||||||
core.maps.generateGroundPattern();
|
core.maps.generateGroundPattern();
|
||||||
core.updateStatusBar(true, true);
|
core.updateStatusBar(true);
|
||||||
core.unlockControl();
|
core.unlockControl();
|
||||||
core.status.event.data = null;
|
core.status.event.data = null;
|
||||||
core.status.event.id = null;
|
core.status.event.id = null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user