MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetScreenResolution

Function GetScreenResolution

TombEngine/Specific/winmain.cpp:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113Vector2i GetScreenResolution()
114{
115 RECT desktop;
116 const HWND hDesktop = GetDesktopWindow();
117 GetWindowRect(hDesktop, &desktop);
118 Vector2i resolution;
119 resolution.x = desktop.right;
120 resolution.y = desktop.bottom;
121 return resolution;
122}
123
124int GetCurrentScreenRefreshRate()
125{

Callers 4

AddStringMethod · 0.85
DrawObjectIn2DSpaceMethod · 0.85
CollectDisplaySpritesMethod · 0.85
InitDefaultConfigurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected