1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-03 14:52:11 +02:00

#1286 - use iOS flow for Android resolutions management

This commit is contained in:
Andrii Danylchenko 2022-12-25 12:03:32 +02:00 committed by Andrii Danylchenko
parent 2953b8fe9d
commit 33602c879d

View File

@ -1079,7 +1079,8 @@ static bool recreateWindow(int w, int h, int bpp, bool fullscreen, int displayIn
if (displayIndex < 0)
displayIndex = 0;
}
#ifdef VCMI_IOS
#if defined(VCMI_ANDROID) || defined(VCMI_IOS)
SDL_GetWindowSize(mainWindow, &w, &h);
#else
if(!checkVideoMode(displayIndex, w, h))