mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 21:18:10 +00:00
(svn r3961) - Fix crash when resizing news history window. Backport of r3778 from trunk
This commit is contained in:
parent
1856976d8e
commit
923dee9bec
@ -7,6 +7,7 @@
|
|||||||
#include "table/sprites.h"
|
#include "table/sprites.h"
|
||||||
#include "table/strings.h"
|
#include "table/strings.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
#include "gui.h"
|
||||||
#include "viewport.h"
|
#include "viewport.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "news.h"
|
#include "news.h"
|
||||||
@ -595,6 +596,7 @@ static void MessageHistoryWndProc(Window *w, WindowEvent *e)
|
|||||||
int y = 19;
|
int y = 19;
|
||||||
byte p, show;
|
byte p, show;
|
||||||
|
|
||||||
|
SetVScrollCount(w, _total_news);
|
||||||
DrawWindowWidgets(w);
|
DrawWindowWidgets(w);
|
||||||
|
|
||||||
if (_total_news == 0) break;
|
if (_total_news == 0) break;
|
||||||
|
Loading…
Reference in New Issue
Block a user