Commit dedf8e61 by doszhang

dos

parent 30ae2c5e
...@@ -1108,7 +1108,7 @@ function flagTextDraw(ctx, content, fontsize, color, x, y, font = "normal") { ...@@ -1108,7 +1108,7 @@ function flagTextDraw(ctx, content, fontsize, color, x, y, font = "normal") {
ctx.font = fontsize + 'px ' + font; ctx.font = fontsize + 'px ' + font;
ctx.fillStyle = color; ctx.fillStyle = color;
ctx.fillText(content, x, y); ctx.fillText(content, x, y);
lineTop = y + 100; lineTop = y + 20;
} else { } else {
let lineArr = []; let lineArr = [];
let lineNo = 0; let lineNo = 0;
...@@ -1143,7 +1143,7 @@ function flagTextDraw(ctx, content, fontsize, color, x, y, font = "normal") { ...@@ -1143,7 +1143,7 @@ function flagTextDraw(ctx, content, fontsize, color, x, y, font = "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)));
if (i == lineArr.length - 1) { if (i == lineArr.length - 1) {
lineTop = y + (lineNo * (fontsize + 10)) + 100; lineTop = y + (lineNo * (fontsize + 10)) + 20;
} }
lineNo++; 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