void wzShutdown() { // order is important! sdlFreeCursors(); SDL_DestroyWindow(WZwindow); SDL_Quit(); appPtr->quit(); delete appPtr; appPtr = NULL; }
/** wzSetCursor()-- Set the current cursor */ void wzSetCursor(CURSOR cur) { ASSERT(cur < CURSOR_MAX, "Specified cursor(%d) is over our limit of (%d)!", (int)cur, (int)CURSOR_MAX); // we reset mouse cursors on the fly...(only in the mouse options screen!) if ((~(war_GetColouredCursor() ^ monoCursor)) && (titleMode == MOUSE_OPTIONS)) { sdlFreeCursors(); war_GetColouredCursor() ? sdlInitColoredCursors() : sdlInitCursors(); SDL_SetCursor(aCursors[cur]); } // If we are already using this cursor then return if (cur != currentCursor) { SDL_SetCursor(aCursors[cur]); currentCursor = cur; } }