fix(nds): remove all top baselines

This commit is contained in:
2026-02-27 02:03:48 +01:00
parent ed7397b46f
commit f3a6928cd7
20 changed files with 57 additions and 71 deletions

View File

@@ -53,7 +53,6 @@ onRender((ctx) => {
: store.isOutro
? store.outro.stage1Opacity
: 1;
ctx.textBaseline = "top";
for (let i = CREDITS.length - 1; i >= CREDITS_TOP_SCREEN_COUNT; i--) {
const id = CREDITS[i]!;
@@ -74,7 +73,7 @@ onRender((ctx) => {
ctx,
$t(`creditsScreen.${id}.label`),
0,
y,
y + 7,
LOGICAL_WIDTH,
);
@@ -84,7 +83,7 @@ onRender((ctx) => {
ctx,
$t(`creditsScreen.${id}.author`),
0,
y + CREDITS_LINE_HEIGHT,
y + CREDITS_LINE_HEIGHT + 9,
LOGICAL_WIDTH,
);
@@ -94,7 +93,7 @@ onRender((ctx) => {
ctx,
$t(`creditsScreen.${id}.url`),
0,
y + CREDITS_LINE_HEIGHT * 2,
y + CREDITS_LINE_HEIGHT * 2 + 7,
LOGICAL_WIDTH,
);
}

View File

@@ -17,7 +17,6 @@ onRender((ctx) => {
? store.outro.stage2Opacity
: 1;
ctx.fillStyle = "#ffffff";
ctx.textBaseline = "top";
// title
ctx.font = "10px NDS10";
@@ -25,7 +24,7 @@ onRender((ctx) => {
ctx,
$t("creditsScreen.title"),
0,
CREDITS_HEADER_Y,
CREDITS_HEADER_Y + 9,
LOGICAL_WIDTH,
);
@@ -53,7 +52,7 @@ onRender((ctx) => {
ctx,
$t(`creditsScreen.${id}.label`),
0,
y,
y + 7,
LOGICAL_WIDTH,
);
@@ -63,7 +62,7 @@ onRender((ctx) => {
ctx,
$t(`creditsScreen.${id}.author`),
0,
y + CREDITS_LINE_HEIGHT,
y + CREDITS_LINE_HEIGHT + 9,
LOGICAL_WIDTH,
);
@@ -73,7 +72,7 @@ onRender((ctx) => {
ctx,
$t(`creditsScreen.${id}.url`),
0,
y + CREDITS_LINE_HEIGHT * 2,
y + CREDITS_LINE_HEIGHT * 2 + 7,
LOGICAL_WIDTH,
);
}