From 5da4f511e85de9e79bee40e3c5e04f899a48723c Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 19 Mar 2020 19:11:33 +0800 Subject: ... --- src/ui/controls/text_control_service.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/controls/text_control_service.hpp') 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 GetCaretBrush(); // ``` template class TextControlService : public Object { @@ -125,7 +125,7 @@ void TextControlService::DrawCaret( painter->FillRectangle( Rect{point, Size{caret_width, text_render_object->GetFont()->GetFontSize()}}, - control_->GetCaretBrush()); + control_->GetCaretBrush().get()); } } -- cgit v1.2.3