mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
Use the resolution QRegExp cap() instead of converting ints back and forth
This commit is contained in:
parent
d1860f2d6c
commit
75be474005
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ 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);
|
QString cleanRes = resolutionRe.cap(1) + QString(" x ") + resolutionRe.cap(2);
|
||||||
|
|
||||||
if (aspect == QLatin1String("16:9") || aspect == QLatin1String("16:10")) {
|
if (aspect == QLatin1String("16:9") || aspect == QLatin1String("16:10")) {
|
||||||
cleanRes.append(tr("\t(Wide ") + aspect + ")");
|
cleanRes.append(tr("\t(Wide ") + aspect + ")");
|
||||||
|
|
Loading…
Reference in a new issue