Android issue (#2247)

* change window handler to uintptr_t

* fix compiling error
This commit is contained in:
minggo
2020-03-09 11:21:07 +08:00
committed by GitHub
parent 4e3270eb9e
commit fa511447e3
11 changed files with 14 additions and 14 deletions
@@ -57,7 +57,7 @@ namespace
sprintf(commandBuf, "window.innerWidth = %d; window.innerHeight = %d; window.windowHandler = 0x%" PRIxPTR ";",
g_width,
g_height,
(intptr_t)cocos2d::JniHelper::getAndroidApp()->window);
(uintptr_t)cocos2d::JniHelper::getAndroidApp()->window);
se->evalString(commandBuf);
return true;