Beispiel #1
0
void ColorsRestoreDefaults(void)
{
	ColorsDestroy();
	ColorsCreate(True);
	MainChangeColor();

	ModuleEvent(EVENT_COLORCHANGED, -1, 0);
}
Beispiel #2
0
/* 
 * LoadSettings:  Load all user's settings from INI file.
 */
void LoadSettings(void)
{
   FontsCreate(False);
   ColorsCreate(False);
   CommLoadSettings();
   ConfigLoad();
   LoadProfaneTerms();

   // Restore defaults if they've changed from previous version
   if (config.ini_version != INI_VERSION)
   {
     ColorsRestoreDefaults();
     FontsRestoreDefaults();
     config.ini_version = INI_VERSION;
   }
}