|
|
|
|
@ -306,7 +306,7 @@ void on_port_chosen_changed(GtkWidget *, monitor_edit_window *window){
|
|
|
|
|
dict=yon_dictionary_get(&main_config.supported_resolutions,port_name);
|
|
|
|
|
if (dict){
|
|
|
|
|
int size;
|
|
|
|
|
config_str resolutions = yon_file_open(get_resolutions_supportable_command,&size);
|
|
|
|
|
config_str resolutions = yon_resource_open_file(get_resolutions_supportable_command,&size);
|
|
|
|
|
resolutions = yon_char_parsed_rip(resolutions,&size,0);
|
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
|
yon_char_remove_last_symbol(resolutions[i],'\n');
|
|
|
|
|
@ -366,7 +366,7 @@ void on_resolutions_unsupported_show(GtkToggleButton *self, monitor_edit_window
|
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->ResolutionCombo),0);
|
|
|
|
|
if (gtk_toggle_button_get_active(self)){
|
|
|
|
|
int size;
|
|
|
|
|
config_str resolutions = yon_file_open(get_resolutions_supportable_command,&size);
|
|
|
|
|
config_str resolutions = yon_resource_open(get_resolutions_supportable_command,&size);
|
|
|
|
|
for (int i=1;i<size;i++){
|
|
|
|
|
yon_char_remove_last_symbol(resolutions[i],'\n');
|
|
|
|
|
int parsed_size;
|
|
|
|
|
|