diff options
author | crupest <crupest@outlook.com> | 2022-02-21 20:47:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-21 20:47:44 +0800 |
commit | 6f398efaacd4cf733fcaedf29b648d17899071f0 (patch) | |
tree | f9bbd4102ce84c1714ba7dfd97c705ffce93f53e /src/win/gui/Window.cpp | |
parent | ced1a63686e6c64cb574d74a34d1bbd07d0a668e (diff) | |
download | cru-6f398efaacd4cf733fcaedf29b648d17899071f0.tar.gz cru-6f398efaacd4cf733fcaedf29b648d17899071f0.tar.bz2 cru-6f398efaacd4cf733fcaedf29b648d17899071f0.zip |
...
Diffstat (limited to 'src/win/gui/Window.cpp')
-rw-r--r-- | src/win/gui/Window.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/win/gui/Window.cpp b/src/win/gui/Window.cpp index 9c86441e..cc2038ec 100644 --- a/src/win/gui/Window.cpp +++ b/src/win/gui/Window.cpp @@ -235,9 +235,9 @@ void WinNativeWindow::SetCursor(std::shared_ptr<ICursor> cursor) { if (!::SetClassLongPtrW(hwnd_, GCLP_HCURSOR, reinterpret_cast<LONG_PTR>(cursor_->GetHandle()))) { CRU_LOG_WARN( - u"Failed to set cursor because failed to set class long. Last " - u"error code: {}.", - ::GetLastError()); + u"Failed to set cursor because failed to set class long. Last " + u"error code: {}.", + ::GetLastError()); return; } @@ -245,7 +245,7 @@ void WinNativeWindow::SetCursor(std::shared_ptr<ICursor> cursor) { auto lg = [](StringView reason) { CRU_LOG_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: {}.", reason, ::GetLastError()); @@ -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); - log::Debug(u"Dpi of window is {}.", dpi_); + CRU_LOG_DEBUG(u"Dpi of window is {}.", dpi_); window_manager->RegisterWindow(hwnd_, this); |