Minor tweaks

This commit is contained in:
seerge
2023-03-12 16:16:32 +01:00
parent 4875a22f38
commit f0c291bea4
2 changed files with 8 additions and 3 deletions

View File

@@ -493,14 +493,18 @@ public class NativeMethods
if (device.outputTechnology == DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL)
{
displayNum = count;
laptopScreen = device.monitorDevicePath;
}
count++;
//Debug.WriteLine(device.outputTechnology);
//Debug.WriteLine(device.monitorFriendlyDeviceName);
}
if (Screen.AllScreens.Length != count)
{
Debug.WriteLine("Mismatch between enumerated and available screens");
return null;
}
count = 0;
foreach (var screen in Screen.AllScreens)
{