修复缩略图bug
This commit is contained in:
parent
9a35e51a96
commit
8e4ba5490f
@ -40,9 +40,11 @@ maps.prototype._resetFloorImages = function () {
|
|||||||
|
|
||||||
maps.prototype._setHDCanvasSize = function (ctx, width, height) {
|
maps.prototype._setHDCanvasSize = function (ctx, width, height) {
|
||||||
ctx.setTransform(1, 0, 0, 1, 0, 0);
|
ctx.setTransform(1, 0, 0, 1, 0, 0);
|
||||||
if (width != null) ctx.canvas.width = width * core.domStyle.ratio;
|
var ratio = core.domStyle.ratio;
|
||||||
if (height != null) ctx.canvas.height = height * core.domStyle.ratio;
|
if (ctx === core.bigmap.tempCanvas) ratio = core.domStyle.scale;
|
||||||
ctx.scale(core.domStyle.ratio, core.domStyle.ratio);
|
if (width != null) ctx.canvas.width = width * ratio;
|
||||||
|
if (height != null) ctx.canvas.height = height * ratio;
|
||||||
|
ctx.scale(ratio, ratio);
|
||||||
ctx.canvas.setAttribute('isHD', 1);
|
ctx.canvas.setAttribute('isHD', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user