diff options
author | rubidium <rubidium@openttd.org> | 2008-04-17 09:42:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-17 09:42:44 +0000 |
commit | 2752568d61e8a25dfef3992edf8a8cc0ce821fca (patch) | |
tree | f0e8b714d0affba2b46fcd6f85a72b4653e031e2 /src/window_gui.h | |
parent | 9c3725827a84b406a6d7108a3472ffbc88e923ed (diff) | |
download | openttd-2752568d61e8a25dfef3992edf8a8cc0ce821fca.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.h | 1 |
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)); |