src/osd/winui/properties.c
| r11512 | r11513 | |
| 1945 | 1945 | { |
| 1946 | 1946 | TCHAR *input_option_value; |
| 1947 | 1947 | int input_option_index; |
| 1948 | | char *op_val; |
| 1948 | char *op_val = NULL; |
| 1949 | 1949 | astring error_string; |
| 1950 | 1950 | |
| 1951 | 1951 | input_option_index = ComboBox_GetCurSel(control); |
| 1952 | 1952 | input_option_value = (TCHAR*) ComboBox_GetItemData(control, input_option_index); |
| 1953 | 1953 | 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); |
| 1955 | 1955 | assert(!error_string); |
| 1956 | 1956 | osd_free(op_val); |
| 1957 | 1957 | return FALSE; |
| r11512 | r11513 | |
| 1987 | 1987 | |
| 1988 | 1988 | // reset the controllers dropdown |
| 1989 | 1989 | (void)ComboBox_ResetContent(control); |
| 1990 | | (void)ComboBox_InsertString(control, index, TEXT("Standard")); |
| 1990 | (void)ComboBox_InsertString(control, index, TEXT("Default")); |
| 1991 | 1991 | (void)ComboBox_SetItemData(control, index, ""); |
| 1992 | 1992 | index++; |
| 1993 | 1993 | |