Skip to content

Commit 6997353

Browse files
committed
1.7.19
[Bug fixes] - Querying displays failed (Fun fact: Recognized this error, because my HDD made rhythmical noises made by the overfilled log file)
1 parent 5a0de9a commit 6997353

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Source/AutoHDR.Displays/DisplayManager.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ public static List<Display> GetActiveMonitors()
231231
DisplayConfigTopologyId topologyId;
232232
var pathWraps = GetPathWraps(QueryDisplayFlags.OnlyActivePaths, out topologyId);
233233

234-
List<DisplayInformation> _interopDisplays = new List<DisplayInformation>();
235234
DISPLAY_DEVICE d = new DISPLAY_DEVICE();
236235
DEVMODE dm = new DEVMODE();
237236
d.cb = Marshal.SizeOf(d);
@@ -246,7 +245,7 @@ public static List<Display> GetActiveMonitors()
246245
displayInfo = new DisplayInformation(deviceID, d);
247246
Display display = new Display(displayInfo, GetUID(displayInfo.Id));
248247
display.ColorDepth = Convert.ToInt32(HDRController.GetColorDepth(display.UID));
249-
if (!displays.Any(m => m.ID.Equals(display.ID)))
248+
if (!displays.Any(m => m.ID.Equals(display.ID)) && pathWraps.Any(p => p.Path.sourceInfo.id.Equals(display.ID)))
250249
displays.Add(display);
251250
deviceID++;
252251
}

Source/AutoHDR/Properties/AssemblyInfo.cs

+2-2
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.18.0")]
56-
[assembly: AssemblyFileVersion("1.7.18.0")]
55+
[assembly: AssemblyVersion("1.7.19.0")]
56+
[assembly: AssemblyFileVersion("1.7.19.0")]

0 commit comments

Comments
 (0)