aboutsummaryrefslogtreecommitdiff
path: root/src/win/native/native_window.cpp
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-09-08 22:24:28 +0800
committer杨宇千 <crupest@outlook.com>2019-09-08 22:24:28 +0800
commita8ba16ddab3291e59a33b36405462094f8cdf5bc (patch)
treeaa849cdc1f9b4f7a0aa150f562b2e618c63ecceb /src/win/native/native_window.cpp
parent8b9a306d6f24dbc08aeee16b115260406e79126d (diff)
downloadcru-a8ba16ddab3291e59a33b36405462094f8cdf5bc.tar.gz
cru-a8ba16ddab3291e59a33b36405462094f8cdf5bc.tar.bz2
cru-a8ba16ddab3291e59a33b36405462094f8cdf5bc.zip
...
Diffstat (limited to 'src/win/native/native_window.cpp')
-rw-r--r--src/win/native/native_window.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/win/native/native_window.cpp b/src/win/native/native_window.cpp
index 6a02c2fc..149d9158 100644
--- a/src/win/native/native_window.cpp
+++ b/src/win/native/native_window.cpp
@@ -1,7 +1,7 @@
#include "cru/win/native/native_window.hpp"
#include "cru/common/format.hpp"
-#include "cru/platform/debug.hpp"
+#include "cru/common/logger.hpp"
#include "cru/win/graph/direct/graph_factory.hpp"
#include "cru/win/native/cursor.hpp"
#include "cru/win/native/exception.hpp"
@@ -169,12 +169,11 @@ void WinNativeWindow::SetCursor(std::shared_ptr<Cursor> cursor) {
WinCursor* c = static_cast<WinCursor*>(cursor.get());
auto outputError = [] {
- DebugMessage(util::Format(util::Format(
- L"Failed to set cursor. Last error code: {}.", ::GetLastError())));
+ log::Debug(L"Failed to set cursor. Last error code: {}.", ::GetLastError());
};
if (!::SetClassLongPtrW(hwnd_, GCLP_HCURSOR,
- reinterpret_cast<LONG_PTR>(c->GetHandle()))) {
+ reinterpret_cast<LONG_PTR>(c->GetHandle()))) {
outputError();
return;
}