Skip to content

Commit cdecbe0

Browse files
committed
1.7.14
[Bug fixes] - Changing refresh rate didn't worked - Display actions have always shown 0Hz
1 parent aee6fe0 commit cdecbe0

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Source/HDRProfile/Displays/DisplayManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public void SetRefreshRate(uint deviceID, int refreshRate)
140140

141141
return dm;
142142
};
143+
ChangeDisplaySetting(deviceID, func);
143144
}
144145

145146
public void SetColorDepth(uint deviceID, int colorDepth)
@@ -268,6 +269,7 @@ private void MergeMonitors(List<Display> activeMonitors)
268269
{
269270
Display existingMonitor = Monitors.First(m => m.UID.Equals(monitor.UID));
270271
existingMonitor.Name = monitor.Name;
272+
existingMonitor.ColorDepth = monitor.ColorDepth;
271273
existingMonitor.RefreshRate = monitor.RefreshRate;
272274
existingMonitor.Resolution = monitor.Resolution;
273275
}

Source/HDRProfile/Profiles/Actions/DisplayAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public override string ActionDescription
9999
if (SetResolution)
100100
returnValue += $" {Locale_Texts.Resolution} {Resolution.Width}x{Resolution.Height}";
101101
if (SetRefreshRate)
102-
returnValue += $" {Locale_Texts.RefreshRate} 0Hz";
102+
returnValue += $" {Locale_Texts.RefreshRate} {RefreshRate}Hz";
103103
return returnValue;
104104
}
105105
}

Source/HDRProfile/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@
5252
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
5353
// indem Sie "*" wie unten gezeigt eingeben:
5454
// [assembly: AssemblyVersion("1.0.*")]
55-
[assembly: AssemblyVersion("1.7.13.0")]
56-
[assembly: AssemblyFileVersion("1.7.13.0")]
55+
[assembly: AssemblyVersion("1.7.14.0")]
56+
[assembly: AssemblyFileVersion("1.7.14.0")]

Source/HDRProfile/Views/AutoHDRMainView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
xmlns:root="clr-namespace:AutoHDR"
1313
mc:Ignorable="d"
1414
Title="AutoHDR" Name="MainWindow" MinHeight="480" MinWidth="480" Closing="Window_Closing" Visibility="{Binding ShowView, Mode=TwoWay, Converter={StaticResource VisibilityBooleanConverter}}"
15-
Height="500"
16-
Width="593" Loaded="MainWindow_Loaded">
15+
Height="600"
16+
Width="700" Loaded="MainWindow_Loaded">
1717
<i:Interaction.Triggers>
1818
<i:EventTrigger EventName="Closing">
1919
<i:InvokeCommandAction Command="{Binding ClosingCommand}"/>

0 commit comments

Comments
 (0)