mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Support "enableTexCoordBounds" config option in Qt GUI.
This commit is contained in:
parent
4e0a0186f5
commit
aa6e549e17
|
@ -245,6 +245,7 @@ void ConfigDialog::_init(bool reInit, bool blockCustomSettings)
|
|||
}
|
||||
|
||||
ui->halosRemovalCheckBox->setChecked(config.texture.enableHalosRemoval != 0);
|
||||
ui->texCoordBoundsCheckBox->setChecked(config.graphics2D.enableTexCoordBounds != 0);
|
||||
|
||||
ui->nativeRes2DComboBox->setCurrentIndex(config.graphics2D.enableNativeResTexrects);
|
||||
|
||||
|
@ -577,6 +578,7 @@ void ConfigDialog::accept(bool justSave) {
|
|||
config.graphics2D.bgMode = Config::BGMode::bgStripped;
|
||||
|
||||
config.texture.enableHalosRemoval = ui->halosRemovalCheckBox->isChecked() ? 1 : 0;
|
||||
config.graphics2D.enableTexCoordBounds = ui->texCoordBoundsCheckBox->isChecked() ? 1 : 0;
|
||||
config.graphics2D.enableNativeResTexrects = ui->nativeRes2DComboBox->currentIndex();
|
||||
|
||||
config.frameBufferEmulation.enable = ui->frameBufferCheckBox->isChecked() ? 1 : 0;
|
||||
|
|
|
@ -59,6 +59,7 @@ void _loadSettings(QSettings & settings)
|
|||
config.graphics2D.correctTexrectCoords = settings.value("correctTexrectCoords", config.graphics2D.correctTexrectCoords).toInt();
|
||||
config.graphics2D.enableNativeResTexrects = settings.value("enableNativeResTexrects", config.graphics2D.enableNativeResTexrects).toInt();
|
||||
config.graphics2D.bgMode = settings.value("bgMode", config.graphics2D.bgMode).toInt();
|
||||
config.graphics2D.enableTexCoordBounds = settings.value("enableTexCoordBounds", config.graphics2D.enableTexCoordBounds).toInt();
|
||||
settings.endGroup();
|
||||
|
||||
settings.beginGroup("frameBufferEmulation");
|
||||
|
@ -244,6 +245,7 @@ void writeSettings(const QString & _strIniFolder)
|
|||
settings.setValue("correctTexrectCoords", config.graphics2D.correctTexrectCoords);
|
||||
settings.setValue("enableNativeResTexrects", config.graphics2D.enableNativeResTexrects);
|
||||
settings.setValue("bgMode", config.graphics2D.bgMode);
|
||||
settings.setValue("enableTexCoordBounds", config.graphics2D.enableTexCoordBounds);
|
||||
settings.endGroup();
|
||||
|
||||
settings.beginGroup("frameBufferEmulation");
|
||||
|
@ -443,6 +445,7 @@ void saveCustomRomSettings(const QString & _strIniFolder, const char * _strRomNa
|
|||
WriteCustomSetting(graphics2D, correctTexrectCoords);
|
||||
WriteCustomSetting(graphics2D, enableNativeResTexrects);
|
||||
WriteCustomSetting(graphics2D, bgMode);
|
||||
WriteCustomSetting(graphics2D, enableTexCoordBounds);
|
||||
settings.endGroup();
|
||||
|
||||
settings.beginGroup("frameBufferEmulation");
|
||||
|
|
|
@ -1535,13 +1535,27 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_29">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="halosRemovalCheckBox">
|
||||
<property name="text">
|
||||
<string>Try to remove colored halos around transparent objects</string>
|
||||
<string>Remove colored halos around transparent objects</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="texCoordBoundsCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Bound texture rectangle texture coordinates to the values they take in native resolutions. It prevents garbage due to fetching out of texture bounds, but can result in hard edges.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Enable native-res bounds for texture coordinates</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
|
|
Loading…
Reference in New Issue
Block a user