From f5c801de04f423269d9cefa3d725b52b87c7a0b9 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 5 Dec 2025 20:49:10 +0800 Subject: Refactor CRU_LOG_TAG_*. --- src/ui/render/TextRenderObject.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/ui/render/TextRenderObject.cpp') diff --git a/src/ui/render/TextRenderObject.cpp b/src/ui/render/TextRenderObject.cpp index 1fe8e652..12d77d0d 100644 --- a/src/ui/render/TextRenderObject.cpp +++ b/src/ui/render/TextRenderObject.cpp @@ -178,11 +178,12 @@ RenderObject* TextRenderObject::HitTest(const Point& point) { void TextRenderObject::Draw(platform::graphics::IPainter* painter) { if constexpr (debug_flags::draw) { - CRU_LOG_TAG_DEBUG( - "Begin to paint, total_offset: {}, size: {}, text_layout: " - "{}, brush: {}.", - this->GetTotalOffset(), this->GetMeasureResultSize(), - this->text_layout_->GetDebugString(), this->brush_->GetDebugString()); + CruLogDebug(kLogTag, + "Begin to paint, total_offset: {}, size: {}, text_layout: " + "{}, brush: {}.", + this->GetTotalOffset(), this->GetMeasureResultSize(), + this->text_layout_->GetDebugString(), + this->brush_->GetDebugString()); } if (this->selection_range_.has_value()) { -- cgit v1.2.3