diff src/news_gui.cpp @ 13277:fe0462278733 draft

(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
author rubidium <rubidium@openttd.org>
date Sat, 17 Oct 2009 14:29:10 +0000
parents afdfdda87cd4
children 04b02b2cfa2b
line wrap: on
line diff
--- a/src/news_gui.cpp
+++ b/src/news_gui.cpp
@@ -993,7 +993,7 @@
 
 	virtual void OnResize(Point delta)
 	{
-		this->vscroll.UpdateCapacity(delta.y / this->line_height);
+		this->vscroll.SetCapacity(this->GetWidget<NWidgetBase>(MHW_BACKGROUND)->current_y / this->line_height);
 	}
 };