diff options
author | crupest <crupest@outlook.com> | 2018-11-06 19:26:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-06 19:26:59 +0800 |
commit | 0152bebd76399b7f32260533c93b3e0dc20becf1 (patch) | |
tree | 8b2c433ade5cb0120160021ca8eaf3d9fb7ff5ce /src/ui/controls/text_control.cpp | |
parent | 1c5b696b487f621aebaafddf25a010c4cdbbd666 (diff) | |
download | cru-0152bebd76399b7f32260533c93b3e0dc20becf1.tar.gz cru-0152bebd76399b7f32260533c93b3e0dc20becf1.tar.bz2 cru-0152bebd76399b7f32260533c93b3e0dc20becf1.zip |
Rename two methods in control.
Diffstat (limited to 'src/ui/controls/text_control.cpp')
-rw-r--r-- | src/ui/controls/text_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/text_control.cpp b/src/ui/controls/text_control.cpp index 6524df0e..08857e09 100644 --- a/src/ui/controls/text_control.cpp +++ b/src/ui/controls/text_control.cpp @@ -249,7 +249,7 @@ namespace cru::ui::controls return; } - const auto p = point.value_or(AbsoluteToLocal(window->GetMousePosition())); + const auto p = point.value_or(WindowToControl(window->GetMousePosition())); if (GetRect(RectRange::Padding).IsPointInside(p)) SetCursor(cursors::i_beam); else |