fix(nds): remove all top baselines
This commit is contained in:
@@ -234,8 +234,6 @@ onMounted(() => {
|
||||
});
|
||||
|
||||
onRender((ctx) => {
|
||||
ctx.textBaseline = "top";
|
||||
|
||||
ctx.save();
|
||||
ctx.globalAlpha = intro.frameOpacity;
|
||||
ctx.translate(BOARD_X, BOARD_Y + intro.frameOffsetY);
|
||||
@@ -281,7 +279,7 @@ onRender((ctx) => {
|
||||
ctx,
|
||||
tile.value.toString(),
|
||||
tile.x + 1,
|
||||
tile.y + (tile.value <= 2048 ? 9 : 10),
|
||||
tile.y + (tile.value <= 2048 ? 9 + 9 : 10 + 7),
|
||||
TILE_SIZE,
|
||||
);
|
||||
ctx.restore();
|
||||
|
||||
@@ -134,7 +134,6 @@ const handleActivateA = () => {
|
||||
|
||||
onRender((ctx) => {
|
||||
ctx.font = "10px NDS10";
|
||||
ctx.textBaseline = "top";
|
||||
|
||||
const drawButton = (
|
||||
title: string,
|
||||
@@ -162,7 +161,7 @@ onRender((ctx) => {
|
||||
ctx.fillStyle = "#282828";
|
||||
const descKey = key === "_3dMode" ? "3dDescription" : "2dDescription";
|
||||
const text = $t(`settings.options.renderingMode.${descKey}`);
|
||||
fillTextHCenteredMultiline(ctx, text, 0, y, buttonWidth, 15);
|
||||
fillTextHCenteredMultiline(ctx, text, 0, 20 + 9, buttonWidth, 15);
|
||||
|
||||
ctx.translate(0, animation[key].headerOffsetY);
|
||||
headerImg.draw(ctx, 0, 0, colorOpts);
|
||||
|
||||
Reference in New Issue
Block a user