MCPcopy Create free account
hub / github.com/bluescan/tacentview / GetScreenSize

Method GetScreenSize

Src/Config.cpp:268–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266
267
268void Config::GlobalData::GetScreenSize(int& screenW, int& screenH)
269{
270 GLFWmonitor* monitor = glfwGetPrimaryMonitor();
271 const GLFWvidmode* mode = monitor ? glfwGetVideoMode(monitor) : nullptr;
272 screenW = mode ? mode->width : 1920;
273 screenH = mode ? mode->height : 1080;
274}
275
276
277void Config::GlobalData::Load(tExpression expr)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected