aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/TextRenderObject.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-21 22:21:07 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-21 22:21:07 +0800
commitd97c14a922b60e89a9892e519b95b7e793aff543 (patch)
treeb90a31c72496070772b4ee9ed4312b9113093e65 /src/ui/render/TextRenderObject.cpp
parentfd61739197ec009d47da87a7cc66970a55f12db4 (diff)
downloadcru-d97c14a922b60e89a9892e519b95b7e793aff543.tar.gz
cru-d97c14a922b60e89a9892e519b95b7e793aff543.tar.bz2
cru-d97c14a922b60e89a9892e519b95b7e793aff543.zip
Remove ui Helper.h,cpp
Diffstat (limited to 'src/ui/render/TextRenderObject.cpp')
-rw-r--r--src/ui/render/TextRenderObject.cpp5
1 files changed, 3 insertions, 2 deletions
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_, "");
}