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

Function ui_UseCursor

ui/UISystem.cpp:343–348  ·  view source on GitHub ↗

ability to load/use mouse cursors

Source from the content-addressed store, hash-verified

341}
342// ability to load/use mouse cursors
343void ui_UseCursor(const char *fname) {
344 if (UI_cursor_bm > -1)
345 bm_FreeBitmap(UI_cursor_bm);
346 UI_cursor_bm = bm_AllocLoadFileBitmap(fname, 0);
347 ASSERT(UI_cursor_bm > -1);
348}
349// adds a window to the ui list.
350void ui_AddWindow(UIWindow *wnd) {
351 tUIWindowNode *newnode = new tUIWindowNode;

Callers 2

InitEditGameSystemsFunction · 0.85
InitGameSystemsFunction · 0.85

Calls 2

bm_FreeBitmapFunction · 0.85
bm_AllocLoadFileBitmapFunction · 0.85

Tested by

no test coverage detected