add: if (opts.driver == OPTVAL_CUSTOM_GL) { cmdline_opts[0].numopts = RES_OPTS + 1; } else { cmdline_opts[0].numopts = RES_OPTS; }
context: SetDefaults (void){	GLOBALOPTS opts;		GetGlobalOptions (&opts);	cmdline_opts[0].selected = opts.driver;	cmdline_opts[1].selected = opts.depth;	cmdline_opts[2].selected = opts.scaler;	cmdline_opts[3].selected = opts.scanlines;	cmdline_opts[4].selected = opts.menu;	cmdline_opts[5].selected = opts.text;	cmdline_opts[6].selected = opts.cscan;	cmdline_opts[7].selected = opts.scroll;	cmdline_opts[8].selected = opts.subtitles;}