summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-03 19:59:05 +0000
committerdarkvater <darkvater@openttd.org>2004-09-03 19:59:05 +0000
commit4fec362b32801648da47340a127908643ef9cb5d (patch)
tree3520ffc76fe6adcce29cac5bbd06de35ff5f53a5 /window.c
parent4bf6ad14061c9ee57518aa0b5f56163e2624a648 (diff)
downloadopenttd-4fec362b32801648da47340a127908643ef9cb5d.tar.xz
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
Diffstat (limited to 'window.c')
-rw-r--r--window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/window.c b/window.c
index e0450867d..a04d276d9 100644
--- a/window.c
+++ b/window.c
@@ -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) {