MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ddgr_GetAspectRatio

Function ddgr_GetAspectRatio

dd_grwin32/ddgrWin32API.cpp:290–293  ·  view source on GitHub ↗

returns aspect ratio of current display.

Source from the content-addressed store, hash-verified

288
289// returns aspect ratio of current display.
290float ddgr_GetAspectRatio() {
291 float aspect_ratio = (float)((3.0 * GetSystemMetrics(SM_CXSCREEN)) / (4.0 * GetSystemMetrics(SM_CYSCREEN)));
292 return aspect_ratio;
293}
294
295unsigned ddgr_GetDDrawObject() {
296 switch (LIB_DATA(subsystem)) {

Callers 1

lockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected