|
|
|
@ -281,9 +281,6 @@ QStringList GraphicsPage::getAvailableResolutions(Ogre::RenderSystem *renderer)
|
|
|
|
|
assert (tokens.size() >= 3);
|
|
|
|
|
QString resolutionStr = tokens.at(0) + QString(" x ") + tokens.at(2);
|
|
|
|
|
|
|
|
|
|
// do not add duplicate resolutions
|
|
|
|
|
if (!result.contains(resolutionStr)) {
|
|
|
|
|
|
|
|
|
|
QString aspect = getAspect(tokens.at(0).toInt(),tokens.at(2).toInt());
|
|
|
|
|
|
|
|
|
|
if (aspect == QLatin1String("16:9") || aspect == QLatin1String("16:10")) {
|
|
|
|
@ -293,10 +290,11 @@ QStringList GraphicsPage::getAvailableResolutions(Ogre::RenderSystem *renderer)
|
|
|
|
|
resolutionStr.append(tr("\t(Standard 4:3)"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// do not add duplicate resolutions
|
|
|
|
|
if (!result.contains(resolutionStr))
|
|
|
|
|
result << resolutionStr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Sort the resolutions in descending order
|
|
|
|
|
qSort(result.begin(), result.end(), naturalSortGreaterThanCI);
|
|
|
|
|