summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-17 09:42:44 +0000
committerrubidium <rubidium@openttd.org>2008-04-17 09:42:44 +0000
commitc31287206dd2037ba83377d09d529d14c56a6291 (patch)
treef0e8b714d0affba2b46fcd6f85a72b4653e031e2 /src/window_gui.h
parent0cd14f9ebb535ff4b30d14cb816de608fd21a40e (diff)
downloadopenttd-c31287206dd2037ba83377d09d529d14c56a6291.tar.xz
(svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 665bcde22..c8aa57ce3 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -409,6 +409,7 @@ struct vp_d {
int32 scrollpos_y;
int32 dest_scrollpos_x;
int32 dest_scrollpos_y;
+ ViewPort vp_data; ///< Screen position and zoom of the viewport
};
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(vp_d));