summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2021-05-06 01:36:56 +0100
committerPeterN <peter@fuzzle.org>2021-05-08 09:52:54 +0100
commit8321ef0061fa898cfb215e57c67aebd7411475e1 (patch)
tree0ba37807c70fe118e7d44d9e73a208fb8f9dcbc2 /src/misc_gui.cpp
parente2774354b4f64a46992a74b399fb882aa075cfac (diff)
downloadopenttd-8321ef0061fa898cfb215e57c67aebd7411475e1.tar.xz
Codechange: Set specific widgets dirty instead of window.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index e9ee7b193..a40bf5013 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -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);
}
}
};