This commit is contained in:
Dragon Fire
2024-03-29 16:52:45 -04:00
parent f341c7736b
commit 2cec48fa2a
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ module.exports = class Pokemon {
const x = 40 * (this.id % 12);
const y = Math.floor(this.id / 12) * 30;
ctx.drawImage(this.store.sprites, x, y, 40, 30, 0, 0, 40, 30);
cropToContent(ctx, canvas.width, canvas.height);
cropToContent(ctx, canvas, canvas.width, canvas.height);
return canvas.toBuffer();
}