Fix: [SDL2] only resolutions of the first display were shown (#11778)

This commit is contained in:
Patric Stout
2024-01-14 23:25:54 +01:00
committed by GitHub
parent 994bdff81e
commit 302ba93471
2 changed files with 12 additions and 6 deletions

View File

@@ -1779,6 +1779,10 @@ bool ToggleFullScreen(bool fs)
void SortResolutions()
{
std::sort(_resolutions.begin(), _resolutions.end());
/* Remove any duplicates from the list. */
auto last = std::unique(_resolutions.begin(), _resolutions.end());
_resolutions.erase(last, _resolutions.end());
}
/**