if (scaler == Image_window::bilinear) config->set("config/video/scale_method","bilinear",true); else if (scaler == Image_window::interlaced) config->set("config/video/scale_method","interlaced",true); else if (scaler == Image_window::point) config->set("config/video/scale_method","point",true); else config->set("config/video/scale_method","2xSaI",true);
void set_resolution (int new_res, bool save){	if(new_res>=0 && new_res<num_res) {		current_res = new_res;		gwin->resized(res_list[current_res].x,			res_list[current_res].y,			res_list[current_res].scale);		scale = gwin->get_win()->get_scale() == 2 ? 1 : 0;		if(save) {			char val[20];			snprintf(val, 20, "%d", res_list[current_res].x);			config->set("config/video/width",val,true);			snprintf(val, 20, "%d", res_list[current_res].y);			config->set("config/video/height",val,true);			snprintf(val, 20, "%d", res_list[current_res].scale);			config->set("config/video/scale",val,true);		}	}}