mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
don't add duplicate resolutions
This commit is contained in:
parent
c9e76d3e90
commit
61ec56debc
@ -264,6 +264,9 @@ QStringList GraphicsPage::getAvailableResolutions(Ogre::RenderSystem *renderer)
|
|||||||
assert (tokens.size() >= 3);
|
assert (tokens.size() >= 3);
|
||||||
QString resolutionStr = tokens.at(0) + QString(" x ") + tokens.at(2);
|
QString resolutionStr = tokens.at(0) + QString(" x ") + tokens.at(2);
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// do not add duplicate resolutions
|
||||||
|
if (!result.contains(resolutionStr))
|
||||||
result << resolutionStr;
|
result << resolutionStr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user