aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_control_service.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/controls/text_control_service.hpp')
-rw-r--r--src/ui/controls/text_control_service.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/controls/text_control_service.hpp b/src/ui/controls/text_control_service.hpp
index 3885242a..d4f3ecf9 100644
--- a/src/ui/controls/text_control_service.hpp
+++ b/src/ui/controls/text_control_service.hpp
@@ -16,7 +16,7 @@ constexpr long long caret_blink_duration = 500;
// ```
// render::TextRenderObject* GetTextRenderObject();
// render::CanvasRenderObject* GetCaretRenderObject();
-// platform::graph::IBrush* GetCaretBrush();
+// std::shared_ptr<platform::graph::IBrush> GetCaretBrush();
// ```
template <typename TControl>
class TextControlService : public Object {
@@ -125,7 +125,7 @@ void TextControlService<TControl>::DrawCaret(
painter->FillRectangle(
Rect{point,
Size{caret_width, text_render_object->GetFont()->GetFontSize()}},
- control_->GetCaretBrush());
+ control_->GetCaretBrush().get());
}
}