mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
#1286 - use iOS flow for Android resolutions management
This commit is contained in:
committed by
Andrii Danylchenko
parent
2953b8fe9d
commit
33602c879d
@@ -1079,7 +1079,8 @@ static bool recreateWindow(int w, int h, int bpp, bool fullscreen, int displayIn
|
|||||||
if (displayIndex < 0)
|
if (displayIndex < 0)
|
||||||
displayIndex = 0;
|
displayIndex = 0;
|
||||||
}
|
}
|
||||||
#ifdef VCMI_IOS
|
|
||||||
|
#if defined(VCMI_ANDROID) || defined(VCMI_IOS)
|
||||||
SDL_GetWindowSize(mainWindow, &w, &h);
|
SDL_GetWindowSize(mainWindow, &w, &h);
|
||||||
#else
|
#else
|
||||||
if(!checkVideoMode(displayIndex, w, h))
|
if(!checkVideoMode(displayIndex, w, h))
|
||||||
|
Reference in New Issue
Block a user