From 9c80fe9fa7385625959167755e82a21d30b2051a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 2 Jul 2020 23:48:03 -0400 Subject: [PATCH] Fix --- commands/edit-meme/mario-bros-views.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-meme/mario-bros-views.js b/commands/edit-meme/mario-bros-views.js index 82ea4798..6698ee9b 100644 --- a/commands/edit-meme/mario-bros-views.js +++ b/commands/edit-meme/mario-bros-views.js @@ -78,7 +78,7 @@ module.exports = class MarioBrosViewsCommand extends Command { fontSize--; ctx.font = `${fontSize}px Noto`; } - const marioLines = await wrapText(ctx, text, 381); + const marioLines = await wrapText(ctx, mario, 381); const marioTopMost = 450 - (((fontSize * marioLines.length) / 2) + ((20 * (marioLines.length - 1)) / 2)); for (let i = 0; i < marioLines.length; i++) { ctx.strokeStyle = 'black'; @@ -93,7 +93,7 @@ module.exports = class MarioBrosViewsCommand extends Command { fontSize--; ctx.font = `${fontSize}px Noto`; } - const luigiLines = await wrapText(ctx, text, 381); + const luigiLines = await wrapText(ctx, luigi, 381); const luigiTopMost = 450 - (((fontSize * luigiLines.length) / 2) + ((20 * (luigiLines.length - 1)) / 2)); for (let i = 0; i < luigiLines.length; i++) { ctx.strokeStyle = 'black';