MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SortResolutions

Function SortResolutions

src/gfx.cpp:1778–1785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1776}
1777
1778void SortResolutions()
1779{
1780 std::sort(_resolutions.begin(), _resolutions.end());
1781
1782 /* Remove any duplicates from the list. */
1783 auto last = std::unique(_resolutions.begin(), _resolutions.end());
1784 _resolutions.erase(last, _resolutions.end());
1785}
1786
1787/**
1788 * Resolve GUI zoom level, if auto-suggestion is requested.

Callers 3

FindResolutionsFunction · 0.85
FindResolutionsFunction · 0.85
GetVideoModesFunction · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected