From d97c14a922b60e89a9892e519b95b7e793aff543 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 21 Nov 2025 22:21:07 +0800 Subject: Remove ui Helper.h,cpp --- src/ui/render/TextRenderObject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui/render/TextRenderObject.cpp') diff --git a/src/ui/render/TextRenderObject.cpp b/src/ui/render/TextRenderObject.cpp index 217029b2..3af08e49 100644 --- a/src/ui/render/TextRenderObject.cpp +++ b/src/ui/render/TextRenderObject.cpp @@ -1,10 +1,10 @@ #include "cru/ui/render/TextRenderObject.h" -#include "../Helper.h" #include "cru/base/log/Logger.h" #include "cru/platform/graphics/Factory.h" #include "cru/platform/graphics/Painter.h" #include "cru/platform/graphics/TextLayout.h" +#include "cru/platform/gui/UiApplication.h" #include "cru/ui/DebugFlags.h" #include "cru/ui/render/RenderObject.h" @@ -28,7 +28,8 @@ TextRenderObject::TextRenderObject( selection_brush.swap(selection_brush_); caret_brush.swap(caret_brush_); - const auto graph_factory = GetGraphicsFactory(); + const auto graph_factory = + platform::gui::IUiApplication::GetInstance()->GetGraphicsFactory(); text_layout_ = graph_factory->CreateTextLayout(font_, ""); } -- cgit v1.2.3