提交 7e90fe08 编写于 作者: O openharmony_ci 提交者: Gitee

!544 Text刷新小区域时字体未绘制

Merge pull request !544 from wangtiantian/bug_t_m
......@@ -242,6 +242,9 @@ void Text::Draw(BufferInfo& gfxDstBuffer,
return;
}
int16_t nextLine = pos.y + lineHeight;
if (lineHeight != style.lineHeight_) {
nextLine -= style.lineSpace_;
}
if (nextLine >= mask.GetTop()) {
pos.x = LineStartPos(coords, textLine_[i].linePixelWidth);
LabelLineInfo labelLine{pos, offset, mask, lineHeight, textLine_[i].lineBytes,
......@@ -254,7 +257,7 @@ void Text::Draw(BufferInfo& gfxDstBuffer,
}
}
lineBegin += textLine_[i].lineBytes;
pos.y = nextLine;
pos.y += lineHeight;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册