* AA combo box no longer disables the AA alpha test checkbox.

* Updated AA alpha test description to be more accurate
pull/3224/head
Thomas Lowe 3 years ago
parent 95d7bdd0c9
commit f50cbcad81

@ -121,7 +121,6 @@ bool Launcher::AdvancedPage::loadSettings()
loadSettingBool(antialiasAlphaTestCheckBox, "antialias alpha test", "Shaders");
if (Settings::Manager::getInt("antialiasing", "Video") == 0) {
antialiasAlphaTestCheckBox->setCheckState(Qt::Unchecked);
antialiasAlphaTestCheckBox->setEnabled(false);
}
loadSettingBool(magicItemAnimationsCheckBox, "use magic item animations", "Game");
connect(animSourcesCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotAnimSourcesToggled(bool)));
@ -445,12 +444,6 @@ void Launcher::AdvancedPage::slotLoadedCellsChanged(QStringList cellNames)
loadCellsForAutocomplete(cellNames);
}
void Launcher::AdvancedPage::slotAASettingChanged(int aaLevel) {
antialiasAlphaTestCheckBox->setEnabled(aaLevel > 0);
if (aaLevel == 0)
antialiasAlphaTestCheckBox->setCheckState(Qt::Unchecked);
}
void Launcher::AdvancedPage::slotAnimSourcesToggled(bool checked)
{
weaponSheathingCheckBox->setEnabled(checked);

@ -24,7 +24,6 @@ namespace Launcher
public slots:
void slotLoadedCellsChanged(QStringList cellNames);
void slotAASettingChanged(int aaLevel);
private slots:
void on_skipMenuCheckBox_stateChanged(int state);

@ -49,10 +49,6 @@ Launcher::GraphicsPage::GraphicsPage(QWidget *parent)
connect(shadowDistanceCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotShadowDistLimitToggled(bool)));
}
void Launcher::GraphicsPage::connectAntiAliasingChanged(const QObject* receiver, const char* slot) {
connect(antiAliasingComboBox, SIGNAL(currentIndexChanged(int)), receiver, slot);
}
bool Launcher::GraphicsPage::setupSDL()
{
bool sdlConnectSuccessful = initSDL();

@ -20,7 +20,6 @@ namespace Launcher
public:
explicit GraphicsPage(QWidget *parent = nullptr);
void connectAntiAliasingChanged(const QObject *receiver, const char *slot);
void saveSettings();
bool loadSettings();

@ -146,7 +146,6 @@ void Launcher::MainDialog::createPages()
connect(mDataFilesPage, SIGNAL(signalProfileChanged(int)), mPlayPage, SLOT(setProfilesIndex(int)));
// Using Qt::QueuedConnection because signal is emitted in a subthread and slot is in the main thread
connect(mDataFilesPage, SIGNAL(signalLoadedCellsChanged(QStringList)), mAdvancedPage, SLOT(slotLoadedCellsChanged(QStringList)), Qt::QueuedConnection);
mGraphicsPage->connectAntiAliasingChanged(mAdvancedPage, SLOT(slotAASettingChanged(int)));
}
Launcher::FirstRunDialogResult Launcher::MainDialog::showFirstRunDialog()

@ -457,7 +457,7 @@
<item row="3" column="1">
<widget class="QCheckBox" name="antialiasAlphaTestCheckBox">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enables alpha testing for smoother anti-aliasing (Requires anti-aliasing to be enabled)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Allows MSAA to work with alpha-tested meshes, producing better-looking edges without pixelation. Can negatively impact performance if MSAA is off.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Use anti-alias alpha testing</string>

Loading…
Cancel
Save