void ycursDestroy(void) { if (type == -1) return; endwin(); ywidRemoveRender(type); type = -1; }
void ysdl2Destroy(void) { if (type == -1) return; SDL_DestroyWindow(sg.pWindow); IMG_Quit(); TTF_Quit(); SDL_Quit(); ywidRemoveRender(type); type = -1; }