From 8214cfa3a6adebfac48c8be1a4b44157bbdbbbe0 Mon Sep 17 00:00:00 2001 From: Tom Tibs Date: Fri, 26 Jul 2019 01:25:23 -0500 Subject: [PATCH] fixed font location --- .idea/workspace.xml | 18 ++++++------------ background.js | 4 ++-- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4463193..639f1ef 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,12 +1,7 @@ - - - - - - + @@ -242,25 +237,24 @@ - - - + - + - + diff --git a/background.js b/background.js index 733eafb..ddb03d5 100644 --- a/background.js +++ b/background.js @@ -189,9 +189,9 @@ function drawWinnerCloseUp(ctx, width, height, horseSize, finalPlaces){ ctx.font = "40px Arial"; ctx.strokeStyle = '#000000'; ctx.lineWidth = 3; - ctx.strokeText(finalPlaces[0].name, horseSize* 3, height - (horseSize * 3)-60); + ctx.strokeText(finalPlaces[0].name, horseSize* 3, height - (horseSize * 3)+60); ctx.fillStyle = '#ffffff'; - ctx.fillText(finalPlaces[0].name, horseSize* 3, height - (horseSize * 3) - 60); + ctx.fillText(finalPlaces[0].name, horseSize* 3, height - (horseSize * 3) + 60); ctx.lineWidth =1; winnerTextCounter --;