Skip to content

Commit

Permalink
Add visible switch for format reinterpretation hack
Browse files Browse the repository at this point in the history
  • Loading branch information
sickc committed Sep 14, 2018
1 parent 554ba45 commit 7232444
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/citra_qt/configuration/configure_graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ConfigureGraphics::ConfigureGraphics(QWidget* parent)
this->setConfiguration();

ui->toggle_vsync->setEnabled(!Core::System::GetInstance().IsPoweredOn());
ui->toggle_format_reinterpret_hack->setEnabled(!Core::System::GetInstance().IsPoweredOn());
ui->frame_limit->setEnabled(Settings::values.use_frame_limit);
connect(ui->toggle_frame_limit, &QCheckBox::stateChanged, ui->frame_limit,
&QSpinBox::setEnabled);
Expand Down Expand Up @@ -62,6 +63,7 @@ void ConfigureGraphics::setConfiguration() {
ui->toggle_shader_jit->setChecked(Settings::values.use_shader_jit);
ui->resolution_factor_combobox->setCurrentIndex(Settings::values.resolution_factor);
ui->toggle_vsync->setChecked(Settings::values.use_vsync);
ui->toggle_format_reinterpret_hack->setChecked(Settings::values.use_format_reinterpret_hack);
ui->toggle_frame_limit->setChecked(Settings::values.use_frame_limit);
ui->frame_limit->setValue(Settings::values.frame_limit);
ui->factor_3d->setValue(Settings::values.factor_3d);
Expand All @@ -83,6 +85,7 @@ void ConfigureGraphics::applyConfiguration() {
Settings::values.resolution_factor =
static_cast<u16>(ui->resolution_factor_combobox->currentIndex());
Settings::values.use_vsync = ui->toggle_vsync->isChecked();
Settings::values.use_format_reinterpret_hack = ui->toggle_format_reinterpret_hack->isChecked();
Settings::values.use_frame_limit = ui->toggle_frame_limit->isChecked();
Settings::values.frame_limit = ui->frame_limit->value();
Settings::values.factor_3d = ui->factor_3d->value();
Expand Down
7 changes: 7 additions & 0 deletions src/citra_qt/configuration/configure_graphics.ui
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
<string>Enable V-Sync</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="toggle_format_reinterpret_hack">
<property name="text">
<string>Ignore Format Reinterpretation</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
Expand Down

0 comments on commit 7232444

Please sign in to comment.