| 180 | } |
| 181 | |
| 182 | std::tuple<int32_t, int32_t> GetDesktopRes() |
| 183 | { |
| 184 | HMONITOR monitor = MonitorFromWindow(GetDesktopWindow(), MONITOR_DEFAULTTONEAREST); |
| 185 | MONITORINFO info = {}; |
| 186 | info.cbSize = sizeof(MONITORINFO); |
| 187 | GetMonitorInfo(monitor, &info); |
| 188 | int32_t DesktopResW = info.rcMonitor.right - info.rcMonitor.left; |
| 189 | int32_t DesktopResH = info.rcMonitor.bottom - info.rcMonitor.top; |
| 190 | return std::make_tuple(DesktopResW, DesktopResH); |
| 191 | } |
| 192 | |
| 193 | std::vector<std::tuple<int, int, int>> GetResolutionsList(bool uniqueByRefresh) |
| 194 | { |
no outgoing calls
no test coverage detected