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

Function d3d_SetResolution

legacy/renderer/Direct3D.cpp:2977–2987  ·  view source on GitHub ↗

Sets the resolution that D3D uses

Source from the content-addressed store, hash-verified

2975
2976// Sets the resolution that D3D uses
2977void d3d_SetResolution(int width, int height) {
2978 D3D_preferred_state.width = width;
2979 D3D_preferred_state.height = height;
2980
2981 if (D3D_state.initted) {
2982 if (width != D3D_state.screen_width || height != D3D_state.screen_height) {
2983 d3d_Close();
2984 d3d_Init(ParentApplication, &D3D_preferred_state);
2985 }
2986 }
2987}
2988
2989// Sets the gamma correction value
2990void d3d_SetGammaValue(float val) {

Callers

nothing calls this directly

Calls 2

d3d_CloseFunction · 0.85
d3d_InitFunction · 0.85

Tested by

no test coverage detected