1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

improve setting window resolution

fix kambala-decapitator/vcmi#3
This commit is contained in:
Andrey Filipenkov 2022-08-06 17:51:48 +03:00
parent 1c17ad2585
commit 89f14ea586

View File

@ -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);