mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 05:29:11 +00:00
Empty area at the top of some textfile windows due to calling SetDisplayedPlane() after calling FinishInitNested(), and/or changing the displayed plane and not calling ReInit() after. This was previously hidden by CheckForMissingGlyphs() reinitialising all windows anyway.
This commit is contained in:
@@ -85,7 +85,7 @@ struct GameManualTextfileWindow : public TextfileWindow {
|
||||
if (this->filename == CHANGELOG_FILENAME) {
|
||||
this->link_anchors.clear();
|
||||
this->AfterLoadChangelog();
|
||||
this->GetWidget<NWidgetStacked>(WID_TF_SEL_JUMPLIST)->SetDisplayedPlane(this->jumplist.empty() ? SZSP_HORIZONTAL : 0);
|
||||
if (this->GetWidget<NWidgetStacked>(WID_TF_SEL_JUMPLIST)->SetDisplayedPlane(this->jumplist.empty() ? SZSP_HORIZONTAL : 0)) this->ReInit();
|
||||
} else {
|
||||
this->TextfileWindow::AfterLoadText();
|
||||
}
|
||||
|
Reference in New Issue
Block a user