diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-08 01:46:00 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-08 21:34:37 +0800 |
commit | 593b658eb1491d4b3103971aba6592aff2765f0e (patch) | |
tree | 526bc88c6a895c215015926c90ff38c106a94604 /src/platform/gui/win/Window.cpp | |
parent | df550874cd546a85074edc35bebeb3cd0530622b (diff) | |
download | cru-593b658eb1491d4b3103971aba6592aff2765f0e.tar.gz cru-593b658eb1491d4b3103971aba6592aff2765f0e.tar.bz2 cru-593b658eb1491d4b3103971aba6592aff2765f0e.zip |
Fix some compile errors on Windows.
Diffstat (limited to 'src/platform/gui/win/Window.cpp')
-rw-r--r-- | src/platform/gui/win/Window.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/platform/gui/win/Window.cpp b/src/platform/gui/win/Window.cpp index 5bd14323..eeb2cde4 100644 --- a/src/platform/gui/win/Window.cpp +++ b/src/platform/gui/win/Window.cpp @@ -245,10 +245,9 @@ void WinNativeWindow::SetCursor(std::shared_ptr<ICursor> cursor) { auto lg = [](StringView reason) { 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: {}.", - reason, ::GetLastError()); + "Failed to set cursor because {} when window is visible. (We need to " + "update cursor if it is inside the window.) Last error code: {}.", + reason.ToUtf8(), ::GetLastError()); }; ::POINT point; |