From 570ed11eb32c966734aad877e58543baeb9f8117 Mon Sep 17 00:00:00 2001 From: YueBiang Date: Wed, 30 Jun 2021 14:50:23 +0800 Subject: [PATCH] fix codex bugs Signed-off-by: YueBiang --- frameworks/draw/draw_label.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frameworks/draw/draw_label.cpp b/frameworks/draw/draw_label.cpp index 101858c..d736b49 100755 --- a/frameworks/draw/draw_label.cpp +++ b/frameworks/draw/draw_label.cpp @@ -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; -- GitLab