From a0403d95bea3e3a3eaedf71a0d9c6d4e1316bd8c Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sun, 7 Sep 2025 11:46:11 +0800 Subject: Use std::string in logger. --- src/platform/gui/win/Window.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/platform/gui/win/Window.cpp') diff --git a/src/platform/gui/win/Window.cpp b/src/platform/gui/win/Window.cpp index 690e56de..5bd14323 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_TAG_DEBUG(u"A repaint is requested."); + CRU_LOG_TAG_DEBUG("A repaint is requested."); } if (!::InvalidateRect(hwnd_, nullptr, FALSE)) throw Win32Error(::GetLastError(), u"Failed to invalidate window."); @@ -235,8 +235,8 @@ void WinNativeWindow::SetCursor(std::shared_ptr cursor) { if (!::SetClassLongPtrW(hwnd_, GCLP_HCURSOR, reinterpret_cast(cursor_->GetHandle()))) { CRU_LOG_TAG_WARN( - u"Failed to set cursor because failed to set class long. Last " - u"error code: {}.", + "Failed to set cursor because failed to set class long. Last " + "error code: {}.", ::GetLastError()); return; } @@ -477,7 +477,7 @@ void WinNativeWindow::RecreateWindow() { if (dpi == 0) throw Win32Error(::GetLastError(), u"Failed to get dpi of window."); dpi_ = static_cast(dpi); - CRU_LOG_TAG_DEBUG(u"Dpi of window is {}.", dpi_); + CRU_LOG_TAG_DEBUG("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_TAG_DEBUG(u"A repaint is finished."); + CRU_LOG_TAG_DEBUG("A repaint is finished."); } } -- cgit v1.2.3