refactor(common): move button selector corner to common

This commit is contained in:
2025-12-18 16:47:17 +01:00
parent fa66b50fc7
commit e22374abb2
2 changed files with 4 additions and 4 deletions

View File

@@ -43,21 +43,21 @@ useRender((ctx) => {
ctx.globalAlpha = props.opacity;
ctx.drawImage(assets.home.bottomScreen.buttons.corner, x, y);
ctx.drawImage(assets.common.selectorCorner, x, y);
ctx.save();
ctx.scale(-1, 1);
ctx.drawImage(assets.home.bottomScreen.buttons.corner, -(x + w), y);
ctx.drawImage(assets.common.selectorCorner, -(x + w), y);
ctx.restore();
ctx.save();
ctx.scale(1, -1);
ctx.drawImage(assets.home.bottomScreen.buttons.corner, x, -(y + h));
ctx.drawImage(assets.common.selectorCorner, x, -(y + h));
ctx.restore();
ctx.save();
ctx.scale(-1, -1);
ctx.drawImage(assets.home.bottomScreen.buttons.corner, -(x + w), -(y + h));
ctx.drawImage(assets.common.selectorCorner, -(x + w), -(y + h));
ctx.restore();
});