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

Function ui_Close

ui/UISystem.cpp:248–257  ·  view source on GitHub ↗

closes UI system. do this when setting a new surface.

Source from the content-addressed store, hash-verified

246}
247// closes UI system. do this when setting a new surface.
248void ui_Close() {
249 if (UI_cursor_bm > -1) {
250 bm_FreeBitmap(UI_cursor_bm);
251 UI_cursor_bm = -1;
252 }
253 // delete window node list.
254 ui_RemoveAllWindows();
255 UI_app = NULL;
256 UI_init = false;
257}
258// retrieves input for user interface
259// mouse
260// keyboard

Callers 2

InitGameEditSystemsFunction · 0.85
ui_InitFunction · 0.85

Calls 2

bm_FreeBitmapFunction · 0.85
ui_RemoveAllWindowsFunction · 0.85

Tested by

no test coverage detected