mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix for fullscreen game always starting in native resolution
This commit is contained in:
@@ -476,7 +476,7 @@ void ScreenHandler::clearScreen()
|
||||
|
||||
std::vector<Point> ScreenHandler::getSupportedResolutions() const
|
||||
{
|
||||
int displayID = SDL_GetWindowDisplayIndex(mainWindow);
|
||||
int displayID = getPreferredDisplayIndex();
|
||||
return getSupportedResolutions(displayID);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user