fix kambala-decapitator/vcmi#3
@@ -1036,7 +1036,9 @@ static bool recreateWindow(int w, int h, int bpp, bool fullscreen, int displayIn
if (displayIndex < 0)
displayIndex = 0;
}
-#ifndef VCMI_IOS
+#ifdef VCMI_IOS
+ SDL_GetWindowSize(mainWindow, &w, &h);
+#else
if(!checkVideoMode(displayIndex, w, h))
{
logGlobal->error("Error: SDL says that %dx%d resolution is not available!", w, h);