summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-08-24 08:34:28 +0000
committerdominik <dominik@openttd.org>2004-08-24 08:34:28 +0000
commite2f627a22ed2a38542b63ac65a73499a2d9f32aa (patch)
tree92d0709632554e6421d9d731ecdb6e8bf9bdc631 /window.c
parent7efcc84512bd2161f4c68fdbdd06b8d1519137df (diff)
downloadopenttd-e2f627a22ed2a38542b63ac65a73499a2d9f32aa.tar.xz
(svn r127) New feature: ingame console. (sign_de)
Press tab to open the console, more info in docs/console.txt
Diffstat (limited to 'window.c')
-rw-r--r--window.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/window.c b/window.c
index 8740bb183..c51245972 100644
--- a/window.c
+++ b/window.c
@@ -2,7 +2,8 @@
#include "ttd.h"
#include "window.h"
#include "gfx.h"
-#include "viewport.h"
+#include "viewport.h"
+#include "console.h"
void HandleButtonClick(Window *w, byte widget)
{
@@ -1204,7 +1205,9 @@ void RelocateAllWindows(int neww, int newh)
vp->virtual_width = neww << vp->zoom;
vp->virtual_height = newh << vp->zoom;
continue; // don't modify top,left
- }
+ }
+
+ IConsoleResize();
if (w->window_class == WC_MAIN_TOOLBAR) {
top = w->top;