Skip to content

Commit b1a7cd5

Browse files
authored
Merge pull request #502 from emoacht/develop
Develop
2 parents 309b0aa + ba071cf commit b1a7cd5

File tree

9 files changed

+36
-9
lines changed

9 files changed

+36
-9
lines changed

Source/Installer/Product.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3-
<Product Id="*" Name="Monitorian" Manufacturer="emoacht" Version="4.4.8"
3+
<Product Id="*" Name="Monitorian" Manufacturer="emoacht" Version="4.4.9"
44
Language="1033" Codepage="1252" UpgradeCode="{81A4D148-75D3-462E-938D-8C208FB48E3C}">
55
<Package Id="*" InstallerVersion="500" Compressed="yes"
66
InstallScope="perMachine" InstallPrivileges="elevated"

Source/Monitorian.Core/Models/Monitor/DisplayInformationProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private void OnAdvancedColorInfoChanged(Windows.Graphics.Display.DisplayInformat
103103
// to replace it with new one which is obtained after that change.
104104
// In addition, if an event handler is unregistered within a callback of
105105
// DispatcherQueueController.DispatcherQueue.TryEnqueue method, ArgumentException will be
106-
// thrown saying Delegate to an instance method cannot have null 'this'
106+
// thrown with a message: Delegate to an instance method cannot have null 'this'
107107
sender.AdvancedColorInfoChanged -= OnAdvancedColorInfoChanged;
108108
IsActive = false;
109109
}

Source/Monitorian.Core/Models/Watcher/DisplayInformationWatcher.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Linq;
44
using System.Text;
55
using System.Threading.Tasks;
6-
using System.Windows;
76

87
using Monitorian.Core.Helper;
98
using Monitorian.Core.Models.Monitor;

Source/Monitorian.Core/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
// You can specify all the values or you can default the Build and Revision Numbers
3434
// by using the '*' as shown below:
3535
// [assembly: AssemblyVersion("1.0.*")]
36-
[assembly: AssemblyVersion("4.4.8.0")]
37-
[assembly: AssemblyFileVersion("4.4.8.0")]
36+
[assembly: AssemblyVersion("4.4.9.0")]
37+
[assembly: AssemblyFileVersion("4.4.9.0")]
3838
[assembly: NeutralResourcesLanguage("en-US")]
3939

4040
// For unit test

Source/Monitorian.Core/Views/Controls/Sliders/RangeSlider.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ public override void OnApplyTemplate()
3737

3838
#region Range
3939

40+
protected override void OnPreviewKeyDown(KeyEventArgs e)
41+
{
42+
switch (e.Key)
43+
{
44+
case Key.Left when (this.Value <= this.SelectionStart):
45+
case Key.Right when (this.Value >= this.SelectionEnd):
46+
// Stop movement by left or right arrow key.
47+
e.Handled = true;
48+
break;
49+
}
50+
base.OnPreviewKeyDown(e);
51+
}
52+
4053
/// <summary>
4154
/// Attempts to get the current level (from 0 to 1) within selected range.
4255
/// </summary>

Source/Monitorian.Core/Views/MainWindow.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@
676676
Margin="12,0,4,0" VerticalAlignment="Center"
677677
Style="{StaticResource MainSliderHorizontal}"
678678
Minimum="0" Maximum="100"
679+
SmallChange="1"
679680
Value="{Binding Brightness, Mode=TwoWay, Delay=50}"
680681
DefersUpdateSource="{Binding Settings.DefersChange, Mode=OneWay}"
681682
IsShadowVisible="{Binding Settings.ShowsAdjusted, Mode=OneWay}"
@@ -723,6 +724,7 @@
723724
Width="100" Margin="8,0,4,0" VerticalAlignment="Center"
724725
Style="{StaticResource SubSliderHorizontal}"
725726
Minimum="0" Maximum="100"
727+
SmallChange="1"
726728
Value="{Binding Contrast, Mode=TwoWay, Delay=50}"
727729
DefersUpdateSource="{Binding Settings.DefersChange, Mode=OneWay}"
728730
Visibility="{Binding IsContrastChanging, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverterKey}}">

Source/Monitorian.Test/MonitorConfigurationTest.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,19 @@ public void TestMonitorCapability_A2_1()
283283
Assert.IsTrue(AreIncluded(vcpCodes, VcpCode.Temperature, 3, 5, 9));
284284
}
285285

286+
[TestMethod]
287+
public void TestMonitorCapability_A2_2()
288+
{
289+
// Acer XV272U KV
290+
var source = @"(prot(monitor)type(LCD)model(ACER XV272UKV)cmds(01 02 03 07 0C E3 F3)vcp(04 10 12 14(05 06 08 0B) 16 18 1A 59 5A 5B 5C 5D 5E 60(0F 11 12) 62 6C 6E 70 8D 9B 9C 9D 9E 9F A0 D6 E0(00 04 05) E1(00 01 02) E2(00 01 02 03 05 06 07 0B 20 21 22) E3 E4 E5 E7(00 01 02) E8(00 01 02 03 04)) mswhql(1)asset_eep(40)mccs_ver(2.2))";
291+
var (success, vcpCodes) = TestExtractVcpCodes(source);
292+
Assert.IsTrue(success);
293+
Assert.IsTrue(AreIncluded(vcpCodes, VcpCode.Luminance));
294+
Assert.IsTrue(AreIncluded(vcpCodes, VcpCode.Contrast));
295+
Assert.IsTrue(AreIncluded(vcpCodes, VcpCode.SpeakerVolume));
296+
Assert.IsTrue(AreIncluded(vcpCodes, VcpCode.Temperature, 5, 6, 8));
297+
}
298+
286299
[TestMethod]
287300
public void TestMonitorCapability_A3_1()
288301
{

Source/Monitorian.Test/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
[assembly: Guid("338b3627-9128-45cf-92c2-86b04318c24b")]
1717

1818
// [assembly: AssemblyVersion("1.0.*")]
19-
[assembly: AssemblyVersion("4.4.3.0")]
20-
[assembly: AssemblyFileVersion("4.4.3.0")]
19+
[assembly: AssemblyVersion("4.4.9.0")]
20+
[assembly: AssemblyFileVersion("4.4.9.0")]

Source/Monitorian/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("4.4.8.0")]
55-
[assembly: AssemblyFileVersion("4.4.8.0")]
54+
[assembly: AssemblyVersion("4.4.9.0")]
55+
[assembly: AssemblyFileVersion("4.4.9.0")]
5656
[assembly: Guid("a4cc5362-9b08-465b-ad64-5cfabc72a4c7")]
5757
[assembly: NeutralResourcesLanguage("en-US")]

0 commit comments

Comments
 (0)