[aseprite] 35/64: Add some log information why WTInfo might fail
Tobias Hansen
thansen at moszumanska.debian.org
Tue Jun 21 14:43:03 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit c875e24928430eb5bf65bd4d2f99864a83cbc2de
Author: David Capello <davidcapello at gmail.com>
Date: Tue May 17 16:11:40 2016 -0300
Add some log information why WTInfo might fail
---
src/she/win/pen.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/she/win/pen.cpp b/src/she/win/pen.cpp
index 9baca48..f76d50d 100644
--- a/src/she/win/pen.cpp
+++ b/src/she/win/pen.cpp
@@ -50,9 +50,21 @@ HCTX PenAPI::open(HWND hwnd)
LOGCONTEXTW logctx;
memset(&logctx, 0, sizeof(LOGCONTEXTW));
UINT infoRes = WTInfo(WTI_DEFSYSCTX, 0, &logctx);
+
+ // TODO Sometimes we receive infoRes=88 from WTInfo and logctx.lcOptions=0
+ // while sizeof(LOGCONTEXTW) is 212
ASSERT(infoRes == sizeof(LOGCONTEXTW));
ASSERT(logctx.lcOptions & CXO_SYSTEM);
+ if (infoRes != sizeof(LOGCONTEXTW)) {
+ LOG("Not supported WTInfo:\n"
+ " Expected context size: %d\n"
+ " Actual context size: %d (options %d)\n",
+ sizeof(LOGCONTEXTW),
+ infoRes, logctx.lcOptions);
+ return nullptr;
+ }
+
logctx.lcOptions =
CXO_SYSTEM |
CXO_MESSAGES |
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list