MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / FontListScreen_EntryClick

Function FontListScreen_EntryClick

src/Menus.c:1660–1666  ·  view source on GitHub ↗

#######################################################################################################################* *----------------------------------------------------FontListScreen-------------------------------------------------------* *#########################################################################################################################*/

Source from the content-addressed store, hash-verified

1658*----------------------------------------------------FontListScreen-------------------------------------------------------*
1659*#########################################################################################################################*/
1660static void FontListScreen_EntryClick(void* screen, void* widget) {
1661 struct ListScreen* s = (struct ListScreen*)screen;
1662 cc_string fontName = ListScreen_UNSAFE_GetCur(s, widget);
1663
1664 Options_Set(OPT_FONT_NAME, &fontName);
1665 SysFont_SetDefault(&fontName);
1666}
1667
1668static void FontListScreen_UpdateEntry(struct ListScreen* s, struct ButtonWidget* button, const cc_string* text) {
1669 struct FontDesc font;

Callers

nothing calls this directly

Calls 3

ListScreen_UNSAFE_GetCurFunction · 0.85
Options_SetFunction · 0.85
SysFont_SetDefaultFunction · 0.85

Tested by

no test coverage detected