From 923dee9becc07c5e6c95acf44ba44dd2491d8fe5 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 18 Mar 2006 15:46:09 +0000 Subject: [PATCH] (svn r3961) - Fix crash when resizing news history window. Backport of r3778 from trunk --- news_gui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/news_gui.c b/news_gui.c index 5d484436cd..e10f6f50d7 100644 --- 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" @@ -595,6 +596,7 @@ static void MessageHistoryWndProc(Window *w, WindowEvent *e) int y = 19; byte p, show; + SetVScrollCount(w, _total_news); DrawWindowWidgets(w); if (_total_news == 0) break;