Some small launcher fixes

pull/21/head
Alexander "Ace" Olofsson 14 years ago
parent df270d54da
commit 141e779e81

@ -164,6 +164,7 @@ void DataFilesPage::setupDataFiles(const QStringList &paths, bool strict)
ESMReader fileReader;
QStringList availableMasters; // Will contain all found masters
fileReader.setEncoding("win1252");
fileReader.open(iter->second.string());
// First we fill the availableMasters and the mMastersWidget

@ -258,7 +258,7 @@ void GraphicsPage::setupOgre()
// Direct3D
if (mDirect3DRenderSystem) {
mD3DRenderDeviceComboBox->addItems(getAvailableOptions(QString("Rendering Device"), mDirect3DRenderSystem));
mD3DAntiAliasingComboBox->addItems(getAvailableOptions(QString("Anti aliasing"), mDirect3DRenderSystem));
mD3DAntiAliasingComboBox->addItems(getAvailableOptions(QString("FSAA"), mDirect3DRenderSystem));
mD3DFloatingPointComboBox->addItems(getAvailableOptions(QString("Floating-point mode"), mDirect3DRenderSystem));
QStringList videoModes = getAvailableOptions(QString("Video Mode"), mDirect3DRenderSystem);
@ -311,7 +311,7 @@ void GraphicsPage::readConfig()
mD3DRenderDeviceComboBox->setCurrentIndex(index);
}
index = mD3DAntiAliasingComboBox->findText(getConfigValue("Anti aliasing", mDirect3DRenderSystem));
index = mD3DAntiAliasingComboBox->findText(getConfigValue("FSAA", mDirect3DRenderSystem));
if ( index != -1) {
mD3DAntiAliasingComboBox->setCurrentIndex(index);
}
@ -395,7 +395,7 @@ void GraphicsPage::writeConfig()
out << direct3DName << endl;
out << "Rendering Device=" << mD3DRenderDeviceComboBox->currentText() << endl;
out << "Anti aliasing=" << mD3DAntiAliasingComboBox->currentText() << endl;
out << "FSAA=" << mD3DAntiAliasingComboBox->currentText() << endl;
out << "Floating-point mode=" << mD3DFloatingPointComboBox->currentText() << endl;
out << "Video Mode=" << mD3DResolutionComboBox->currentText() << endl;
@ -470,4 +470,5 @@ void GraphicsPage::rendererChanged(const QString &renderer)
mDisplayStackedWidget->setCurrentIndex(0);
}
mSelectedRenderSystem = mOgre->getRenderSystemByName(renderer.toStdString());
}
Loading…
Cancel
Save