diff options
author | 杨宇千 <crupest@outlook.com> | 2018-11-19 18:24:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-19 18:24:32 +0800 |
commit | 3edc249f48b4d7e692c782c1ca4809e07fa0726f (patch) | |
tree | 1fe286351460e13af044346fc444e2189d49a0f4 /src/ui/controls/button.cpp | |
parent | f78359cc042f089b2f99b23dd3df7ae02ecdabec (diff) | |
parent | a8f9fac512cf3e4884cee3b7f655429ece89a025 (diff) | |
download | cru-3edc249f48b4d7e692c782c1ca4809e07fa0726f.tar.gz cru-3edc249f48b4d7e692c782c1ca4809e07fa0726f.tar.bz2 cru-3edc249f48b4d7e692c782c1ca4809e07fa0726f.zip |
Merge pull request #21 from crupest/20-rename-methods
Rename two methods in Control.
Diffstat (limited to 'src/ui/controls/button.cpp')
-rw-r--r-- | src/ui/controls/button.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/controls/button.cpp b/src/ui/controls/button.cpp index 0bd6a70d..a9f101f8 100644 --- a/src/ui/controls/button.cpp +++ b/src/ui/controls/button.cpp @@ -23,12 +23,12 @@ namespace cru::ui::controls void Button::OnMouseClickBegin(MouseButton button) { GetBorderProperty() = pressed_border_; - InvalidateBorder(); + UpdateBorder(); } void Button::OnMouseClickEnd(MouseButton button) { GetBorderProperty() = normal_border_; - InvalidateBorder(); + UpdateBorder(); } } |