| 495 | } |
| 496 | |
| 497 | static void MenuOptionsScreen_ContextRecreated(void* screen) { |
| 498 | struct MenuOptionsScreen* s = (struct MenuOptionsScreen*)screen; |
| 499 | int i; |
| 500 | Gui_MakeTitleFont(&s->titleFont); |
| 501 | Gui_MakeBodyFont(&s->textFont); |
| 502 | Screen_UpdateVb(screen); |
| 503 | |
| 504 | for (i = 0; i < s->numButtons; i++) |
| 505 | { |
| 506 | if (s->widgets[i]) MenuOptionsScreen_Update(s, &s->buttons[i]); |
| 507 | } |
| 508 | |
| 509 | ButtonWidget_SetConst(&s->done, "Done", &s->titleFont); |
| 510 | if (s->DoRecreateExtra) s->DoRecreateExtra(s); |
| 511 | TextGroupWidget_SetFont(&s->extHelp, &s->textFont); |
| 512 | TextGroupWidget_RedrawAll(&s->extHelp); /* TODO: SetFont should redrawall implicitly */ |
| 513 | } |
| 514 | |
| 515 | static const struct ScreenVTABLE MenuOptionsScreen_VTABLE = { |
| 516 | MenuOptionsScreen_Init, Screen_NullUpdate, MenuOptionsScreen_Free, |
nothing calls this directly
no test coverage detected