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

Function ddgr_Close

dd_grwin32/ddgrWin32Init.cpp:138–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void ddgr_Close() {
139 if (!LIB_DATA(init))
140 return;
141
142 switch (LIB_DATA(subsystem)) {
143 case DDGR_GDIX_SUBSYSTEM:
144 case DDGR_GDI_SUBSYSTEM:
145 ddgr_gdi_Close();
146 break;
147 case DDGR_DX_SUBSYSTEM:
148 ddgr_dx_Close();
149 break;
150 default:
151 Int3();
152 }
153
154 LIB_DATA(subsystem) = 0;
155 LIB_DATA(init) = false;
156}
157
158void ddgr_GetSubsystem(char *name, bool *fullscreen) {
159 strcpy(name, DDGR_subsystem_names[DDGR_subsysid]);

Callers 2

ddgr_InitFunction · 0.85
EditorToGameFunction · 0.85

Calls 2

ddgr_gdi_CloseFunction · 0.85
ddgr_dx_CloseFunction · 0.85

Tested by

no test coverage detected