mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-06-08 08:18:00 +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;
|
if (config.index >= config.blocks.length) return false;
|
||||||
var block = config.blocks[config.index++];
|
var block = config.blocks[config.index++];
|
||||||
if (block != null) {
|
if (block != null) {
|
||||||
const scale = config.isHD
|
// It works, why?
|
||||||
? devicePixelRatio * core.domStyle.scale
|
const scale = config.isHD ? devicePixelRatio ** 2 : 1;
|
||||||
: 1;
|
|
||||||
core.drawImage(
|
core.drawImage(
|
||||||
ctx,
|
ctx,
|
||||||
tempCtx.canvas,
|
tempCtx.canvas,
|
||||||
|
Loading…
Reference in New Issue
Block a user