Fix bigmap v2 damage
This commit is contained in:
parent
75c12b4070
commit
69e4c3807a
@ -1217,6 +1217,7 @@ control.prototype._drawDamage_draw = function (ctx, onMap) {
|
|||||||
cacheCtx.canvas.width = ctx.canvas.width;
|
cacheCtx.canvas.width = ctx.canvas.width;
|
||||||
cacheCtx.canvas.height = ctx.canvas.height;
|
cacheCtx.canvas.height = ctx.canvas.height;
|
||||||
cacheCtx.clearRect(0, 0, cacheCtx.canvas.width, cacheCtx.canvas.height);
|
cacheCtx.clearRect(0, 0, cacheCtx.canvas.width, cacheCtx.canvas.height);
|
||||||
|
if (onMap && core.bigmap.v2) cacheCtx.translate(32, 32);
|
||||||
|
|
||||||
core.setFont(cacheCtx, "bold 11px Arial");
|
core.setFont(cacheCtx, "bold 11px Arial");
|
||||||
core.setTextAlign(cacheCtx, 'left');
|
core.setTextAlign(cacheCtx, 'left');
|
||||||
@ -1242,8 +1243,9 @@ control.prototype._drawDamage_draw = function (ctx, onMap) {
|
|||||||
}
|
}
|
||||||
core.fillBoldText(cacheCtx, one.text, px, py, one.color);
|
core.fillBoldText(cacheCtx, one.text, px, py, one.color);
|
||||||
});
|
});
|
||||||
|
cacheCtx.translate(0, 0);
|
||||||
|
|
||||||
core.drawImage(ctx, cacheCtx.canvas, 0, 0);
|
core.drawImage(ctx, cacheCtx.canvas, onMap && core.bigmap.v2 ? -32 : 0, onMap && core.bigmap.v2 ? -32 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------ 录像相关 ------ //
|
// ------ 录像相关 ------ //
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user