MCPcopy Create free account
hub / github.com/ThirteenAG/WidescreenFixesPack / GetDesktopRes

Function GetDesktopRes

includes/stdafx.cpp:182–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182std::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
193std::vector<std::tuple<int, int, int>> GetResolutionsList(bool uniqueByRefresh)
194{

Callers 15

GetPCSX2DataMethod · 0.85
InitFunction · 0.85
InitFunction · 0.85
InitFunction · 0.85
InitFunction · 0.85
InitFunction · 0.85
InitFunction · 0.85
InitFunction · 0.85
CreateWindowExAHookFunction · 0.85
InitFunction · 0.85
InitFunction · 0.85
InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected