aboutsummaryrefslogtreecommitdiff
path: root/src/platform/gui/win/Window.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-08-18 18:38:10 +0800
committerYuqian Yang <crupest@crupest.life>2025-08-18 18:38:10 +0800
commitb53780b2106b0f233c48e27653336b8a629ca486 (patch)
treee5e2659eb23852012804e9ba8a290a8e19d8230f /src/platform/gui/win/Window.cpp
parentd3568fb844c7b9ea59783b04899dbd94ad972b91 (diff)
downloadcru-b53780b2106b0f233c48e27653336b8a629ca486.tar.gz
cru-b53780b2106b0f233c48e27653336b8a629ca486.tar.bz2
cru-b53780b2106b0f233c48e27653336b8a629ca486.zip
Rename CRU_LOG_* to CRU_LOG_TAG_*.
Diffstat (limited to 'src/platform/gui/win/Window.cpp')
-rw-r--r--src/platform/gui/win/Window.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/platform/gui/win/Window.cpp b/src/platform/gui/win/Window.cpp
index 47ca93f8..690e56de 100644
--- a/src/platform/gui/win/Window.cpp
+++ b/src/platform/gui/win/Window.cpp
@@ -207,7 +207,7 @@ bool WinNativeWindow::ReleaseMouse() {
void WinNativeWindow::RequestRepaint() {
if constexpr (DebugFlags::paint) {
- CRU_LOG_DEBUG(u"A repaint is requested.");
+ CRU_LOG_TAG_DEBUG(u"A repaint is requested.");
}
if (!::InvalidateRect(hwnd_, nullptr, FALSE))
throw Win32Error(::GetLastError(), u"Failed to invalidate window.");
@@ -234,7 +234,7 @@ void WinNativeWindow::SetCursor(std::shared_ptr<ICursor> cursor) {
if (!::SetClassLongPtrW(hwnd_, GCLP_HCURSOR,
reinterpret_cast<LONG_PTR>(cursor_->GetHandle()))) {
- CRU_LOG_WARN(
+ CRU_LOG_TAG_WARN(
u"Failed to set cursor because failed to set class long. Last "
u"error code: {}.",
::GetLastError());
@@ -244,7 +244,7 @@ void WinNativeWindow::SetCursor(std::shared_ptr<ICursor> cursor) {
if (GetVisibility() != WindowVisibilityType::Show) return;
auto lg = [](StringView reason) {
- CRU_LOG_WARN(
+ CRU_LOG_TAG_WARN(
u"Failed to set cursor because {} when window is visible. (We need to "
u"update cursor if it is inside the window.) Last error code: {}.",
@@ -477,7 +477,7 @@ void WinNativeWindow::RecreateWindow() {
if (dpi == 0)
throw Win32Error(::GetLastError(), u"Failed to get dpi of window.");
dpi_ = static_cast<float>(dpi);
- CRU_LOG_DEBUG(u"Dpi of window is {}.", dpi_);
+ CRU_LOG_TAG_DEBUG(u"Dpi of window is {}.", dpi_);
window_manager->RegisterWindow(hwnd_, this);
@@ -507,7 +507,7 @@ void WinNativeWindow::OnPaintInternal() {
paint_event_.Raise(nullptr);
ValidateRect(hwnd_, nullptr);
if constexpr (DebugFlags::paint) {
- CRU_LOG_DEBUG(u"A repaint is finished.");
+ CRU_LOG_TAG_DEBUG(u"A repaint is finished.");
}
}