mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
parent
1c17ad2585
commit
89f14ea586
@ -1036,7 +1036,9 @@ static bool recreateWindow(int w, int h, int bpp, bool fullscreen, int displayIn
|
|||||||
if (displayIndex < 0)
|
if (displayIndex < 0)
|
||||||
displayIndex = 0;
|
displayIndex = 0;
|
||||||
}
|
}
|
||||||
#ifndef VCMI_IOS
|
#ifdef VCMI_IOS
|
||||||
|
SDL_GetWindowSize(mainWindow, &w, &h);
|
||||||
|
#else
|
||||||
if(!checkVideoMode(displayIndex, w, h))
|
if(!checkVideoMode(displayIndex, w, h))
|
||||||
{
|
{
|
||||||
logGlobal->error("Error: SDL says that %dx%d resolution is not available!", w, h);
|
logGlobal->error("Error: SDL says that %dx%d resolution is not available!", w, h);
|
||||||
|
Loading…
Reference in New Issue
Block a user