Codechange: Set specific widgets dirty instead of window.
(cherry picked from commit 8321ef0061
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
0676c1f470
commit
ad554d913f
@@ -601,7 +601,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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user