Commit 2daf3027 authored by deuce's avatar deuce
Browse files

Use an Enum for the VideoMode, not an integer.

parent 40b8f06e
......@@ -1123,7 +1123,7 @@ void change_settings(void)
continue;
default:
settings.startup_mode=j;
iniSetInteger(&inicontents,"SyncTERM","VideoMode",settings.startup_mode,&ini_style);
iniSetEnum(&inicontents,"SyncTERM","VideoMode",screen_modes,settings.startup_mode,&ini_style);
break;
}
break;
......
......@@ -85,6 +85,7 @@ extern char *rate_names[];
extern int rates[];
extern int sortorder[];
extern ini_style_t ini_style;
extern char *screen_modes[];
void read_item(str_list_t listfile, struct bbslist *entry, char *bbsname, int id, int type);
void read_list(char *listpath, struct bbslist **list, struct bbslist *defaults, int *i, int type);
void free_list(struct bbslist **list, int listcount);
......
......@@ -976,7 +976,7 @@ void load_settings(struct syncterm_settings *set)
inifile=fopen(inipath,"r");
set->confirm_close=iniReadBool(inifile,"SyncTERM","ConfirmClose",FALSE);
set->prompt_save=iniReadBool(inifile,"SyncTERM","PromptSave",TRUE);
set->startup_mode=iniReadInteger(inifile,"SyncTERM","VideoMode",FALSE);
set->startup_mode=iniReadEnum(inifile,"SyncTERM","VideoMode",screen_modes,SCREEN_MODE_CURRENT);
set->output_mode=iniReadEnum(inifile,"SyncTERM","OutputMode",output_enum,CIOLIB_MODE_AUTO);
set->backlines=iniReadInteger(inifile,"SyncTERM","ScrollBackLines",2000);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment