1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Fix for fullscreen game always starting in native resolution

This commit is contained in:
Dydzio 2023-07-11 17:59:22 +02:00
parent 0c9e23edfa
commit 42db24b4b2

View File

@ -476,7 +476,7 @@ void ScreenHandler::clearScreen()
std::vector<Point> ScreenHandler::getSupportedResolutions() const
{
int displayID = SDL_GetWindowDisplayIndex(mainWindow);
int displayID = getPreferredDisplayIndex();
return getSupportedResolutions(displayID);
}