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

Function g3_SetAspectRatio

renderer/HardwareSetup.cpp:37–37  ·  view source on GitHub ↗

allows the user to specify an aspect ratio that overrides the renderer's The parameter is the w/h of the screen pixels

Source from the content-addressed store, hash-verified

35// allows the user to specify an aspect ratio that overrides the renderer's
36// The parameter is the w/h of the screen pixels
37void g3_SetAspectRatio(float aspect) { sAspect = aspect; }
38// returns the user-specified aspect ratio used to override the renderer's
39float g3_GetAspectRatio() { return sAspect; }
40

Callers 2

TCSSSCallbackFunction · 0.85
InitGameSystemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected