Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
:big: Bugfix regarding image tokens.
Browse files Browse the repository at this point in the history
  • Loading branch information
catheart97 committed Nov 29, 2023
1 parent d7f032f commit 42f6e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/components/BoardComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ const drawDecorator: BoardCallback = (canvas, w, _h, board, position, playerView

ctx.drawImage(
image,
x * CanvasBaseSize + LineWidth,
y * CanvasBaseSize + LineWidth,
x * CanvasBaseSize + CanvasBaseSize / 2 - dim / 2,
y * CanvasBaseSize + CanvasBaseSize / 2 - dim / 2,
dim - LineWidth * 2,
dim - LineWidth * 2
)
Expand Down

0 comments on commit 42f6e77

Please sign in to comment.