aboutsummaryrefslogtreecommitdiff
path: root/src/ui/helper/ClickDetector.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-12-05 20:49:10 +0800
committerYuqian Yang <crupest@crupest.life>2025-12-05 20:49:10 +0800
commitf5c801de04f423269d9cefa3d725b52b87c7a0b9 (patch)
tree51bbda6cf58cdd0a6d9128d073ad00c9337680aa /src/ui/helper/ClickDetector.cpp
parent5edaa008efabb1b97446bed2f6b542cf01eb3c70 (diff)
downloadcru-f5c801de04f423269d9cefa3d725b52b87c7a0b9.tar.gz
cru-f5c801de04f423269d9cefa3d725b52b87c7a0b9.tar.bz2
cru-f5c801de04f423269d9cefa3d725b52b87c7a0b9.zip
Refactor CRU_LOG_TAG_*.
Diffstat (limited to 'src/ui/helper/ClickDetector.cpp')
-rw-r--r--src/ui/helper/ClickDetector.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/helper/ClickDetector.cpp b/src/ui/helper/ClickDetector.cpp
index 0ac0515f..caa7061f 100644
--- a/src/ui/helper/ClickDetector.cpp
+++ b/src/ui/helper/ClickDetector.cpp
@@ -55,8 +55,8 @@ ClickDetector::ClickDetector(controls::Control* control) {
this->state_ == ClickState::Hover) {
if (!this->control_->CaptureMouse()) {
if constexpr (debug_flags::click_detector) {
- CRU_LOG_TAG_DEBUG(
- "Failed to capture mouse when begin click.");
+ CruLogDebug(kLogTag,
+ "Failed to capture mouse when begin click.");
}
return;
}
@@ -133,7 +133,8 @@ void ClickDetector::SetState(ClickState state) {
UnreachableCode();
}
};
- CRU_LOG_TAG_DEBUG("Click state changed, new state: {}.", to_string(state));
+ CruLogDebug(kLogTag, "Click state changed, new state: {}.",
+ to_string(state));
}
state_ = state;