static UI_MENU_CALLBACK(custom_PETModel_callback) { int model, selected; selected = vice_ptr_to_int(param); if (activated) { petmodel_set(selected); } else { model = petmodel_get(); if (selected == model) { return sdl_menu_text_tick; } } return NULL; }
static UI_CALLBACK(radio_petmodel) { int model, selected; selected = vice_ptr_to_int(UI_MENU_CB_PARAM); if (!CHECK_MENUS) { petmodel_set(selected); ui_update_menus(); } else { model = petmodel_get(); if (selected == model) { ui_menu_set_tick(w, 1); } else { ui_menu_set_tick(w, 0); } } }