diff --git a/AdaptiveBrightness/monitor.hpp b/AdaptiveBrightness/monitor.hpp index bd6a368..2ef8938 100644 --- a/AdaptiveBrightness/monitor.hpp +++ b/AdaptiveBrightness/monitor.hpp @@ -36,6 +36,11 @@ class Monitor { friend BOOL detail::enumMonitorsCallback(HMONITOR, HDC, LPRECT, LPARAM); + const HMONITOR m_hMonitor; + const PhysicalMonitor m_physicalMonitor; + + std::optional> m_brightnessRange; + Monitor(HMONITOR hMonitor, PHYSICAL_MONITOR physicalMonitor); bool hasBrightnessCapability() const; @@ -45,11 +50,6 @@ class Monitor { { return (value - inMin) * (outMax - outMin) / (inMax - inMin) + outMin; } - - const HMONITOR m_hMonitor; - const PhysicalMonitor m_physicalMonitor; - - std::optional> m_brightnessRange; }; #endif