mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-04 19:07:06 +08:00
完善高清化ui
This commit is contained in:
parent
4ea4592d6f
commit
cc6ee7e7af
@ -1738,9 +1738,8 @@ ui.prototype._drawTextContent_draw = function (ctx, tempCtx, content, config) {
|
||||
if (config.index >= config.blocks.length) return false;
|
||||
var block = config.blocks[config.index++];
|
||||
if (block != null) {
|
||||
const scale = config.isHD
|
||||
? devicePixelRatio * core.domStyle.scale
|
||||
: 1;
|
||||
// It works, why?
|
||||
const scale = config.isHD ? devicePixelRatio ** 2 : 1;
|
||||
core.drawImage(
|
||||
ctx,
|
||||
tempCtx.canvas,
|
||||
|
Loading…
Reference in New Issue
Block a user