From 97f8a83af4b71a57ca0d1ab54fd5cf4d05cd33e3 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 5 Jul 2020 19:15:26 +0200 Subject: [PATCH] Add info log for compatible monitors --- AdaptiveBrightness/monitor_control_win.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AdaptiveBrightness/monitor_control_win.cpp b/AdaptiveBrightness/monitor_control_win.cpp index 83997da..e5e3f69 100644 --- a/AdaptiveBrightness/monitor_control_win.cpp +++ b/AdaptiveBrightness/monitor_control_win.cpp @@ -31,6 +31,10 @@ static BOOL enumMonitorsCallback(HMONITOR hMonitor, [[maybe_unused]] HDC hDC, [[ const auto monitor = Monitor(hMonitor, physicalMonitor); if(monitor.hasBrightnessCapability()) { + qInfo(ltr("Found brightness capable monitor '%1' with handle '0x%2' and physical handle '0x%3'") + .arg(monitor.m_physicalMonitor.name) + .arg(reinterpret_cast(monitor.m_hMonitor), 0, 16) + .arg(reinterpret_cast(monitor.m_physicalMonitor.handle), 0, 16)); monitors.push_back(monitor); } }