forked from mirror/OpenTTD
(svn r25533) -Codechange: Use SetCapacityFromWidget more often.
This commit is contained in:
@@ -1084,7 +1084,7 @@ struct MessageHistoryWindow : Window {
|
||||
|
||||
virtual void OnResize()
|
||||
{
|
||||
this->vscroll->SetCapacity(this->GetWidget<NWidgetBase>(WID_MH_BACKGROUND)->current_y / this->line_height);
|
||||
this->vscroll->SetCapacityFromWidget(this, WID_MH_BACKGROUND);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user