aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/list_item.cpp
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2018-11-19 18:24:32 +0800
committerGitHub <noreply@github.com>2018-11-19 18:24:32 +0800
commit3edc249f48b4d7e692c782c1ca4809e07fa0726f (patch)
tree1fe286351460e13af044346fc444e2189d49a0f4 /src/ui/controls/list_item.cpp
parentf78359cc042f089b2f99b23dd3df7ae02ecdabec (diff)
parenta8f9fac512cf3e4884cee3b7f655429ece89a025 (diff)
downloadcru-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/list_item.cpp')
-rw-r--r--src/ui/controls/list_item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/list_item.cpp b/src/ui/controls/list_item.cpp
index bdd44273..bf61010d 100644
--- a/src/ui/controls/list_item.cpp
+++ b/src/ui/controls/list_item.cpp
@@ -25,7 +25,7 @@ namespace cru::ui::controls
void ListItem::SetState(const State state)
{
state_ = state;
- Repaint();
+ InvalidateDraw();
}
void ListItem::OnDrawForeground(ID2D1DeviceContext* device_context)