MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / NetworkReInitChatBoxSize

Function NetworkReInitChatBoxSize

src/network/network_chat_gui.cpp:101–105  ·  view source on GitHub ↗

Initialize all font-dependent chat box sizes. */

Source from the content-addressed store, hash-verified

99
100/** Initialize all font-dependent chat box sizes. */
101void NetworkReInitChatBoxSize()
102{
103 _chatmsg_box.y = 3 * GetCharacterHeight(FS_NORMAL);
104 _chatmsg_box.height = MAX_CHAT_MESSAGES * (GetCharacterHeight(FS_NORMAL) + ScaleGUITrad(NETWORK_CHAT_LINE_SPACING)) + ScaleGUITrad(4);
105}
106
107/** Initialize all buffers of the chat visualisation. */
108void NetworkInitChatMessage()

Callers 2

ReInitAllWindowsFunction · 0.85
NetworkInitChatMessageFunction · 0.85

Calls 2

GetCharacterHeightFunction · 0.85
ScaleGUITradFunction · 0.50

Tested by

no test coverage detected