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

Function ChatScreen_SetChatlines

src/Screens.c:1455–1465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1453}
1454
1455void ChatScreen_SetChatlines(int lines) {
1456 struct ChatScreen* s = &ChatScreen_Instance;
1457 Elem_Free(&s->chat);
1458 s->chatIndex += s->chat.lines - lines;
1459 s->chat.lines = lines;
1460 TextGroupWidget_RedrawAll(&s->chat);
1461
1462 s->maxVertices = ChatScreen_CalcMaxVertices(s);
1463 Screen_UpdateVb(s);
1464 s->dirty = true;
1465}
1466
1467
1468/*########################################################################################################################*

Callers 1

ChO_SetChatlinesFunction · 0.85

Calls 3

Screen_UpdateVbFunction · 0.85

Tested by

no test coverage detected