Skip to content

Commit

Permalink
Qt: Fix FF/turbo speed resetting in game properties
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 2, 2024
1 parent 9733d8a commit b4e509d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/spu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,7 @@ void SPU::VolumeEnvelope::Reset(u8 rate_, u8 rate_mask_, bool decreasing_, bool
counter_increment >>= ((rate >> 2) - 11);

// Rate of 0x7F (or more specifically all bits set, for decay/release) is a special case that never ticks.
if ((rate_ & rate_mask_) != rate_mask_)
if ((rate & rate_mask_) != rate_mask_)
counter_increment = std::max<u16>(counter_increment, 1u);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/emulationsettingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ EmulationSettingsWidget::EmulationSettingsWidget(SettingsWindow* dialog, QWidget
fillComboBoxWithEmulationSpeeds(m_ui.fastForwardSpeed, effective_fast_forward_speed);
if (m_dialog->isPerGameSettings() && !m_dialog->getFloatValue("Main", "FastForwardSpeed", std::nullopt).has_value())
{
m_ui.emulationSpeed->setCurrentIndex(0);
m_ui.fastForwardSpeed->setCurrentIndex(0);
}
else
{
Expand All @@ -63,7 +63,7 @@ EmulationSettingsWidget::EmulationSettingsWidget(SettingsWindow* dialog, QWidget
fillComboBoxWithEmulationSpeeds(m_ui.turboSpeed, effective_turbo_speed);
if (m_dialog->isPerGameSettings() && !m_dialog->getFloatValue("Main", "TurboSpeed", std::nullopt).has_value())
{
m_ui.emulationSpeed->setCurrentIndex(0);
m_ui.turboSpeed->setCurrentIndex(0);
}
else
{
Expand Down

0 comments on commit b4e509d

Please sign in to comment.