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

Method OnRealtimeTick

src/textfile_gui.cpp:679–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679void TextfileWindow::OnRealtimeTick(uint)
680{
681 auto r = this->ContinueReflow();
682 if (r == ReflowState::None) return;
683
684 this->SetupScrollbars();
685
686 if (r == ReflowState::VisibleReflowed) {
687 this->SetWidgetDirty(WID_TF_BACKGROUND);
688 this->UpdateVisibleIterators();
689 }
690
691 /* Caption is always dirty. */
692 this->SetWidgetDirty(WID_TF_CAPTION);
693}
694
695void TextfileWindow::UpdateVisibleIterators()
696{

Callers 1

Calls 4

ContinueReflowMethod · 0.95
SetupScrollbarsMethod · 0.95
SetWidgetDirtyMethod · 0.80

Tested by

no test coverage detected