| 677 | } |
| 678 | |
| 679 | void 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 | |
| 695 | void TextfileWindow::UpdateVisibleIterators() |
| 696 | { |
no test coverage detected