未验证 提交 5d859c4f 编写于 作者: O openharmony_ci 提交者: Gitee

!896 uicircleprogress控件进度条不显示进度

Merge pull request !896 from 施其昌/master
......@@ -107,14 +107,16 @@ void UICircleProgress::DrawCommonCircle(BufferInfo& gfxDstBuffer, const Rect& in
backgroundStyle_->lineCap_);
}
if ((startAngle != endAngle) && (foregroundStyle_->lineCap_ == CapType::CAP_ROUND)) {
if ((startAngle != endAngle) || (foregroundStyle_->lineCap_ == CapType::CAP_ROUND)) {
arcinfo.imgPos.x = progressImagePos_.x + rect.GetLeft();
arcinfo.imgPos.y = progressImagePos_.y + rect.GetTop();
arcinfo.startAngle = startAngle;
arcinfo.endAngle = endAngle;
arcinfo.imgSrc = foregroundImage_;
BaseGfxEngine::GetInstance()->DrawArc(gfxDstBuffer, arcinfo, invalidatedArea, *foregroundStyle_, opaScale_,
foregroundStyle_->lineCap_);
if (startAngle != endAngle) {
BaseGfxEngine::GetInstance()->DrawArc(gfxDstBuffer, arcinfo, invalidatedArea, *foregroundStyle_, opaScale_,
foregroundStyle_->lineCap_);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册