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

Method UpdateHelpTextSize

src/settings_gui.cpp:768–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766 }
767
768 void UpdateHelpTextSize()
769 {
770 NWidgetResizeBase *wid = this->GetWidget<NWidgetResizeBase>(WID_GO_HELP_TEXT);
771 this->vscroll_description->SetCount(this->last_clicked ? CeilDiv(this->last_clicked->GetMaxHelpHeight(wid->current_x), GetCharacterHeight(FS_NORMAL)) : 0);
772 }
773
774 void SetTab(WidgetID widget)
775 {

Callers

nothing calls this directly

Calls 4

CeilDivFunction · 0.85
GetCharacterHeightFunction · 0.85
SetCountMethod · 0.45
GetMaxHelpHeightMethod · 0.45

Tested by

no test coverage detected