diff options
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2,7 +2,7 @@ #include "ttd.h" #include "window.h" #include "gfx.h" -#include "viewport.h"
+#include "viewport.h" #include "console.h" void HandleButtonClick(Window *w, byte widget) @@ -574,7 +574,7 @@ Window *FindWindowFromPt(int x, int y) void InitWindowSystem() -{
+{ IConsoleClose(); memset(&_windows, 0, sizeof(_windows)); _last_window = _windows; @@ -1021,7 +1021,7 @@ void MouseLoop() return; if (mousewheel && !(w->flags4 & WF_DISABLE_VP_SCROLL)) { - ZoomInOrOutToCursor(mousewheel < 0); + ZoomInOrOutToCursorWindow(mousewheel < 0,w); } if (click == 1) { @@ -1206,8 +1206,8 @@ 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) { |