mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-29 09:05:41 +00:00
System: Fix inverted volume selection
This commit is contained in:
parent
110fa28c25
commit
2eb0085539
|
@ -2995,7 +2995,7 @@ GPUVSyncMode System::GetEffectiveVSyncMode()
|
||||||
bool System::ShouldAllowPresentThrottle()
|
bool System::ShouldAllowPresentThrottle()
|
||||||
{
|
{
|
||||||
const bool valid_vm = (s_state != State::Shutdown && s_state != State::Stopping);
|
const bool valid_vm = (s_state != State::Shutdown && s_state != State::Stopping);
|
||||||
return !valid_vm || !IsRunningAtNonStandardSpeed();
|
return !valid_vm || IsRunningAtNonStandardSpeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool System::IsFastForwardEnabled()
|
bool System::IsFastForwardEnabled()
|
||||||
|
@ -4633,7 +4633,7 @@ bool System::IsRunningAtNonStandardSpeed()
|
||||||
if (!IsValid())
|
if (!IsValid())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return (s_target_speed == 1.0f || s_syncing_to_host);
|
return (s_target_speed != 1.0f && !s_syncing_to_host);
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 System::GetAudioOutputVolume()
|
s32 System::GetAudioOutputVolume()
|
||||||
|
|
|
@ -188,7 +188,7 @@
|
||||||
<number>50</number>
|
<number>50</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Orientation::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="tickPosition">
|
<property name="tickPosition">
|
||||||
<enum>QSlider::TickPosition::TicksBothSides</enum>
|
<enum>QSlider::TickPosition::TicksBothSides</enum>
|
||||||
|
@ -272,6 +272,13 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label_4">
|
||||||
|
<property name="text">
|
||||||
|
<string>Fast Forward Volume:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
|
@ -321,26 +328,23 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="2" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_4">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<property name="text">
|
<item row="0" column="0">
|
||||||
<string>Fast Forward Volume:</string>
|
<widget class="QCheckBox" name="muted">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>Mute All Sound</string>
|
||||||
</item>
|
</property>
|
||||||
<item row="2" column="0">
|
</widget>
|
||||||
<widget class="QCheckBox" name="muted">
|
</item>
|
||||||
<property name="text">
|
<item row="0" column="1">
|
||||||
<string>Mute All Sound</string>
|
<widget class="QCheckBox" name="muteCDAudio">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>Mute CD Audio</string>
|
||||||
</item>
|
</property>
|
||||||
<item row="3" column="0">
|
</widget>
|
||||||
<widget class="QCheckBox" name="muteCDAudio">
|
</item>
|
||||||
<property name="text">
|
</layout>
|
||||||
<string>Mute CD Audio</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in a new issue