1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Fix screen updates after window resize

This commit is contained in:
Ivan Savenko 2023-05-08 00:45:47 +03:00
parent dbc4330fc5
commit bffec0068b

View File

@ -269,7 +269,11 @@ void WindowHandler::initializeScreen()
throw std::runtime_error("Unable to copy surface\n");
}
if (GH.listInt.size() > 1)
screenBuf = screen2;
else
screenBuf = screen;
clearScreen();
}