Program now remembers favorite mode layers/anim, based on last time you switched in splash screen or toolbar. Fixed graphic behavior when mode 5 is enabled/disabled, and added a safety (colors <4).

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2014 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2012-09-28 00:19:57 +00:00
parent 5165312bff
commit 26613ec440
12 changed files with 179 additions and 137 deletions

View File

@@ -987,6 +987,13 @@ int Load_INI(T_Config * conf)
conf->Use_virtual_keyboard=values[0];
}
conf->Default_mode_layers=0;
// Optional, remembers if the user last chose layers or anim (>=2.4)
if (!Load_INI_get_values (file,buffer,"Default_mode_layers",1,values))
{
conf->Default_mode_layers=(values[0]!=0);
}
// Insert new values here
fclose(file);