Codechange: Set specific widgets dirty instead of window.

This commit is contained in:
Peter Nelson
2021-05-06 01:36:56 +01:00
committed by PeterN
parent e2774354b4
commit 8321ef0061
4 changed files with 8 additions and 7 deletions

View File

@@ -557,7 +557,7 @@ struct AboutWindow : public Window {
if (this->text_position < (int)(this->GetWidget<NWidgetBase>(WID_A_SCROLLING_TEXT)->pos_y - lengthof(_credits) * this->line_height)) {
this->text_position = this->GetWidget<NWidgetBase>(WID_A_SCROLLING_TEXT)->pos_y + this->GetWidget<NWidgetBase>(WID_A_SCROLLING_TEXT)->current_y;
}
this->SetDirty();
this->SetWidgetDirty(WID_A_SCROLLING_TEXT);
}
}
};