Commit bb1d8f7d by doszhang

dos

parent 2a4c4863
...@@ -881,7 +881,8 @@ function flagTextDraw(ctx, content, fontsize, color, x, y) { ...@@ -881,7 +881,8 @@ function flagTextDraw(ctx, content, fontsize, color, x, y) {
for (let i = 0; i < lineArr.length; i++) { for (let i = 0; i < lineArr.length; i++) {
ctx.font = fontsize + 'px normal'; ctx.font = fontsize + 'px normal';
ctx.fillStyle = color; ctx.fillStyle = color;
ctx.fillText(lineArr[i], x, y + (lineNo * fontsize) + 10); ctx.fillText(lineArr[i], x, y + (lineNo * (fontsize + 10)));
lineNo++;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment