fix(nds): remove all top baselines
This commit is contained in:
@@ -24,8 +24,6 @@ store.$subscribe((_, state) => {
|
||||
});
|
||||
|
||||
onRender((ctx) => {
|
||||
ctx.textBaseline = "top";
|
||||
|
||||
ctx.fillStyle = "#fbfbfb";
|
||||
ctx.fillRect(0, 0, LOGICAL_WIDTH, LOGICAL_HEIGHT);
|
||||
|
||||
@@ -49,7 +47,7 @@ onRender((ctx) => {
|
||||
: 1;
|
||||
|
||||
assets.images.intro.warning.draw(ctx, logoX, TITLE_Y - 1);
|
||||
ctx.fillText($t("intro.copyright"), logoX + logoWidth + 3, TITLE_Y);
|
||||
ctx.fillText($t("intro.copyright"), logoX + logoWidth + 3, TITLE_Y + 12);
|
||||
|
||||
ctx.letterSpacing = "0px";
|
||||
|
||||
@@ -57,7 +55,7 @@ onRender((ctx) => {
|
||||
ctx.font = "10px NDS10";
|
||||
const lines = $t("intro.text").split("\n");
|
||||
for (let i = 0, y = TEXT_Y; i < lines.length; i += 1, y += 18)
|
||||
fillTextHCentered(ctx, lines[i]!, 0, y, LOGICAL_WIDTH);
|
||||
fillTextHCentered(ctx, lines[i]!, 0, y + 9, LOGICAL_WIDTH);
|
||||
|
||||
// hint
|
||||
ctx.font = "10px NDS10";
|
||||
@@ -66,7 +64,7 @@ onRender((ctx) => {
|
||||
: store.isOutro
|
||||
? store.outro.textOpacity
|
||||
: hintTextOpacity.value;
|
||||
fillTextHCentered(ctx, $t("intro.hint"), 0, HINT_Y, LOGICAL_WIDTH);
|
||||
fillTextHCentered(ctx, $t("intro.hint"), 0, HINT_Y + 9, LOGICAL_WIDTH);
|
||||
|
||||
ctx.globalAlpha = store.isOutro ? store.outro.backgroundOpacity : 0;
|
||||
assets.images.home.bottomScreen.background.draw(ctx, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user