Change windowHandle to windowId when EVENT_DESTROY_WINDOW (#12848)

* Change windowHandle to windowId when EVENT_DESTROY_WINDOW

* fix: resolution issue on iOS
This commit is contained in:
林玮
2022-09-22 15:45:56 +08:00
committed by GitHub
parent 82cbdfb232
commit eab2d646c6
8 changed files with 25 additions and 24 deletions
@@ -42,7 +42,7 @@ void SystemWindowManager::swapWindows() {
}
ISystemWindow *SystemWindowManager::createWindow(const ISystemWindowInfo &info) {
if (!info.externalHandle || !isExternalHandleExist(info.externalHandle)) {
if (!isExternalHandleExist(info.externalHandle)) {
ISystemWindow *window = BasePlatform::getPlatform()->createNativeWindow(_nextWindowId, info.externalHandle);
if (window) {
if (!info.externalHandle) {