Previous 15994 Revisions Next

r11513 Wednesday 11th May, 2011 at 13:50:33 UTC by Robbbert
[MESSUI] Fixed controller problem (hopefully!). Renamed the first "Standard" to "Default" to prevent confusion with "standard" controller file.
[src/osd/winui]properties.c

src/osd/winui/properties.c
r11512r11513
19451945{
19461946   TCHAR *input_option_value;
19471947   int input_option_index;
1948   char *op_val;
1948   char *op_val = NULL;
19491949   astring error_string;
19501950
19511951   input_option_index = ComboBox_GetCurSel(control);
19521952   input_option_value = (TCHAR*) ComboBox_GetItemData(control, input_option_index);
19531953   op_val = utf8_from_tstring(input_option_value);
1954   opts->set_value(OPTION_CTRLR, op_val, OPTION_PRIORITY_CMDLINE,error_string);
1954   opts->set_value(OPTION_CTRLR, input_option_index ? op_val : "", OPTION_PRIORITY_CMDLINE,error_string);
19551955   assert(!error_string);
19561956   osd_free(op_val);
19571957   return FALSE;
r11512r11513
19871987
19881988   // reset the controllers dropdown
19891989   (void)ComboBox_ResetContent(control);
1990   (void)ComboBox_InsertString(control, index, TEXT("Standard"));
1990   (void)ComboBox_InsertString(control, index, TEXT("Default"));
19911991   (void)ComboBox_SetItemData(control, index, "");
19921992   index++;
19931993

Previous 15994 Revisions Next


© 1998-2018 The MESS Team