Use new canvasSize property in method
This commit is contained in:
parent
31efdeb37e
commit
53d030b5cf
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ class CardCreator {
|
|||
} else {
|
||||
const portrait = await loadImage(data.Character.Portrait);
|
||||
|
||||
ctx.drawImage(this.bgImage, 0, 0, 890, 722);
|
||||
ctx.drawImage(this.bgImage, 0, 0, canvasSize.width, canvasSize.height + 2);
|
||||
|
||||
ctx.drawImage(portrait, 0, 120, 441, 600);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue