Commit 985aecee authored by wjf's avatar wjf

l

parent 9b741a76
...@@ -451,7 +451,12 @@ export class TextField extends Sprite { ...@@ -451,7 +451,12 @@ export class TextField extends Sprite {
ctx.textAlign = s._textAlign || TEXT_ALIGN.LEFT; ctx.textAlign = s._textAlign || TEXT_ALIGN.LEFT;
//暂时没开放 //暂时没开放
ctx.textBaseline = "top"; ctx.textBaseline = "top";
ctx.fillStyle = getRGBA(s._fillColor, s._textAlpha)
if (s._textAlpha === 1) {
ctx.fillStyle = s._fillColor;
} else {
ctx.fillStyle = getRGBA(s._fillColor, s._textAlpha)
}
} }
/** /**
......
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 to comment