void MainQuit(HWND hwnd) { CloseConnection(); if (config.save_settings) SaveSettings(); FreeProfaneTerms(); MainExitState(); FontsDestroy(); ColorsDestroy(); MusicClose(); PaletteDeactivate(); DeleteObject(hPal); HookClose(); FreeLibrary(hRichEditLib); D3DRenderShutDown(); PostQuitMessage(0); }
void FontsRestoreDefaults(void) { FontsDestroy(); FontsCreate(True); MainChangeFont(); ModuleEvent(EVENT_FONTCHANGED, -1, NULL); }