diff options
author | frosch <frosch@openttd.org> | 2013-06-30 14:33:32 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-06-30 14:33:32 +0000 |
commit | e184b9799cd855eadfae0863a5a7930168535c89 (patch) | |
tree | cf05abe7755550bd356830b345c0e2f45a829921 /src/news_gui.cpp | |
parent | 5f8f71edf069a7298fa2b435ca9ee63a625d778f (diff) | |
download | openttd-e184b9799cd855eadfae0863a5a7930168535c89.tar.xz |
(svn r25533) -Codechange: Use SetCapacityFromWidget more often.
Diffstat (limited to 'src/news_gui.cpp')
-rw-r--r-- | src/news_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/news_gui.cpp b/src/news_gui.cpp index f8e77161e..89448edea 100644 --- a/src/news_gui.cpp +++ b/src/news_gui.cpp @@ -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); } }; |