Improved logging

This commit is contained in:
seerge
2023-03-30 21:10:35 +02:00
parent 7e0459bd44
commit d15c6cb073
5 changed files with 69 additions and 51 deletions

View File

@@ -632,6 +632,7 @@ public class NativeMethods
{
dm.dmDisplayFrequency = frequency;
int iRet = NativeMethods.ChangeDisplaySettingsEx(laptopScreen, ref dm, IntPtr.Zero, DisplaySettingsFlags.CDS_UPDATEREGISTRY, IntPtr.Zero);
Logger.WriteLine("Screen = " + frequency.ToString() + "Hz : " + (iRet == 0 ? "OK" : iRet));
return iRet;
}