mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-02 23:07:36 +02:00
Merge pull request #2322 from dydzio0614/resolution-fix
Fix for fullscreen game always starting in native resolution
This commit is contained in:
commit
fb00bf4067
@ -525,7 +525,7 @@ void ScreenHandler::clearScreen()
|
|||||||
|
|
||||||
std::vector<Point> ScreenHandler::getSupportedResolutions() const
|
std::vector<Point> ScreenHandler::getSupportedResolutions() const
|
||||||
{
|
{
|
||||||
int displayID = SDL_GetWindowDisplayIndex(mainWindow);
|
int displayID = getPreferredDisplayIndex();
|
||||||
return getSupportedResolutions(displayID);
|
return getSupportedResolutions(displayID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user