提交 570ed11e 编写于 作者: Y YueBiang

fix codex bugs

Signed-off-by: NYueBiang <suyue7@huawei.com>
上级 83a57352
......@@ -84,7 +84,10 @@ void DrawLabel::DrawArcText(BufferInfo& gfxDstBuffer,
float posX;
float posY;
float rotateAngle;
bool xorFlag = (orientation == UIArcLabel::TextOrientation::INSIDE) ^ (arcTextInfo.direct == TEXT_DIRECT_LTR);
bool orientationFlag = (orientation == UIArcLabel::TextOrientation::INSIDE);
bool directFlag = (arcTextInfo.direct == TEXT_DIRECT_LTR);
bool xorFlag = !((orientationFlag && directFlag) || (!orientationFlag && !directFlag));
while (i < arcTextInfo.lineEnd) {
uint32_t tmp = i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册