From 31ae3fdf0518e1c5ff299a1085c4a25575f12589 Mon Sep 17 00:00:00 2001 From: mlw296395 Date: Thu, 18 Aug 2022 12:39:45 +0000 Subject: [PATCH] update frameworks/draw/draw_label.cpp. Signed-off-by: mlw296395 --- frameworks/draw/draw_label.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/frameworks/draw/draw_label.cpp b/frameworks/draw/draw_label.cpp index 3ab32c6..59a06b8 100644 --- a/frameworks/draw/draw_label.cpp +++ b/frameworks/draw/draw_label.cpp @@ -309,9 +309,7 @@ void DrawLabel::GetForegroundColor(uint16_t letterIndex, List* void DrawLabel::DrawLineBackgroundColor(BufferInfo& gfxDstBuffer, uint16_t letterIndex, const LabelLineInfo& labelLine) { uint32_t i = 0; - uint32_t letter; while (i < labelLine.lineLength) { - letter = TypedText::GetUTF8Next(labelLine.text, i, i); bool havelinebackground = false; ColorType linebackgroundColor; GetLineBackgroundColor(letterIndex, labelLine.linebackgroundColor, havelinebackground, linebackgroundColor); -- GitLab