Commit e12f2618 by doszhang

dos

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