mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Removed color information from Direct3D resolutions
This commit is contained in:
parent
110dd5d0ee
commit
d1860f2d6c
@ -268,16 +268,17 @@ QStringList GraphicsPage::getAvailableResolutions(Ogre::RenderSystem *renderer)
|
|||||||
int height = resolutionRe.cap(2).toInt();
|
int height = resolutionRe.cap(2).toInt();
|
||||||
|
|
||||||
QString aspect = getAspect(width, height);
|
QString aspect = getAspect(width, height);
|
||||||
|
QString cleanRes = QString::number(width) + QString(" x ") + QString::number(height);
|
||||||
|
|
||||||
if (aspect == QLatin1String("16:9") || aspect == QLatin1String("16:10")) {
|
if (aspect == QLatin1String("16:9") || aspect == QLatin1String("16:10")) {
|
||||||
resolution.append(tr("\t(Wide ") + aspect + ")");
|
cleanRes.append(tr("\t(Wide ") + aspect + ")");
|
||||||
|
|
||||||
} else if (aspect == QLatin1String("4:3")) {
|
} else if (aspect == QLatin1String("4:3")) {
|
||||||
resolution.append(tr("\t(Standard 4:3)"));
|
cleanRes.append(tr("\t(Standard 4:3)"));
|
||||||
}
|
}
|
||||||
// do not add duplicate resolutions
|
// do not add duplicate resolutions
|
||||||
if (!result.contains(resolution))
|
if (!result.contains(cleanRes))
|
||||||
result.append(resolution);
|
result.append(cleanRes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user