|
|
@ -268,6 +268,8 @@ struct GameOptionsWindow : Window {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case WID_GO_RESOLUTION_DROPDOWN: // Setup resolution dropdown
|
|
|
|
case WID_GO_RESOLUTION_DROPDOWN: // Setup resolution dropdown
|
|
|
|
|
|
|
|
if (_num_resolutions == 0) break;
|
|
|
|
|
|
|
|
|
|
|
|
list = new DropDownList();
|
|
|
|
list = new DropDownList();
|
|
|
|
*selected_index = GetCurRes();
|
|
|
|
*selected_index = GetCurRes();
|
|
|
|
for (int i = 0; i < _num_resolutions; i++) {
|
|
|
|
for (int i = 0; i < _num_resolutions; i++) {
|
|
|
@ -433,6 +435,8 @@ struct GameOptionsWindow : Window {
|
|
|
|
DropDownList *list = this->BuildDropDownList(widget, &selected);
|
|
|
|
DropDownList *list = this->BuildDropDownList(widget, &selected);
|
|
|
|
if (list != NULL) {
|
|
|
|
if (list != NULL) {
|
|
|
|
ShowDropDownList(this, list, selected, widget);
|
|
|
|
ShowDropDownList(this, list, selected, widget);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (widget == WID_GO_RESOLUTION_DROPDOWN) ShowErrorMessage(STR_ERROR_RESOLUTION_LIST_FAILED, INVALID_STRING_ID, WL_ERROR);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|