fix: 部分缩放条件下模糊

This commit is contained in:
unanmed 2025-09-30 13:33:39 +08:00
parent fbecb5f8e4
commit 61e09f6395
2 changed files with 2 additions and 0 deletions

View File

@ -255,6 +255,7 @@ const MainScene = defineComponent(() => {
width={MAIN_WIDTH} width={MAIN_WIDTH}
height={MAIN_HEIGHT} height={MAIN_HEIGHT}
noanti noanti
nocache
> >
<LeftStatusBar <LeftStatusBar
loc={[0, 0, STATUS_BAR_WIDTH, STATUS_BAR_HEIGHT]} loc={[0, 0, STATUS_BAR_WIDTH, STATUS_BAR_HEIGHT]}

View File

@ -442,6 +442,7 @@ export abstract class RenderItem<E extends ERenderItemEvent = ERenderItemEvent>
this.cacheDirty = false; this.cacheDirty = false;
} }
canvas.ctx.imageSmoothingEnabled = false;
canvas.ctx.drawImage(this.cache.canvas, ax, ay, width, height); canvas.ctx.drawImage(this.cache.canvas, ax, ay, width, height);
} else { } else {
canvas.ctx.translate(ax, ay); canvas.ctx.translate(ax, ay);