changeset 3155:ec8075e772c0 draft

(svn r3778) - Fix crash when resizing news history window.
author peter1138 <peter1138@openttd.org>
date Mon, 06 Mar 2006 23:01:35 +0000
parents c655b0fa9fa6
children 0bf147af2902
files news_gui.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/news_gui.c
+++ b/news_gui.c
@@ -7,6 +7,7 @@
 #include "table/sprites.h"
 #include "table/strings.h"
 #include "window.h"
+#include "gui.h"
 #include "viewport.h"
 #include "gfx.h"
 #include "news.h"
@@ -585,6 +586,7 @@
 		int y = 19;
 		byte p, show;
 
+		SetVScrollCount(w, _total_news);
 		DrawWindowWidgets(w);
 
 		if (_total_news == 0) break;