Commit e12f2618 by doszhang

dos

parent 58156e18
...@@ -389,9 +389,9 @@ function initGame() { ...@@ -389,9 +389,9 @@ function initGame() {
} }
function txtDraw(ctx, content, x, y, fontsize, fontweight, color) { function txtDraw(ctx, content, x, y, fontsize, fontweight, color) {
x = x * 2; x = x;
y = y * 2; y = y;
fontsize = fontsize * 2; fontsize = fontsize;
ctx.font = fontweight + ' '+fontsize+'px zkkh'; ctx.font = fontweight + ' '+fontsize+'px zkkh';
var width = ctx.measureText(content).width; var width = ctx.measureText(content).width;
var cx = x - width / 2; var cx = x - width / 2;
......
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