fix: use LOGICAL_WIDTH,HEIGHT instead of SCREEN_WIDTH,HEIGHT beucase screen is scaled

This commit is contained in:
2026-01-14 16:13:44 +01:00
parent 0a8017e34e
commit 5dd43c7814
8 changed files with 13 additions and 13 deletions

View File

@@ -150,7 +150,7 @@ onRender((ctx) => {
);
ctx.fillStyle = `rgba(0, 0, 0, ${store.isIntro ? store.intro.fadeOpacity : store.isOutro ? store.outro.fadeOpacity : 0})`;
ctx.fillRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
ctx.fillRect(0, 0, LOGICAL_WIDTH, LOGICAL_HEIGHT);
});
defineOptions({