diff options
author | peter1138 <peter1138@openttd.org> | 2007-05-28 16:46:16 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-05-28 16:46:16 +0000 |
commit | 344e9007feac6dd1e90154b45e80907c5e49821a (patch) | |
tree | 17d1923b83a591294a9f935eda1159e520609c81 /src/window.h | |
parent | 1a8a44165b7ccab605673c750596b80eb3d88799 (diff) | |
download | openttd-344e9007feac6dd1e90154b45e80907c5e49821a.tar.xz |
(svn r9962) -Feature: Add smooth viewport scrolling. This must be enabled with patch setting 'smooth_scroll'
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h index b33990420..f1888c294 100644 --- a/src/window.h +++ b/src/window.h @@ -404,6 +404,8 @@ struct vp_d { VehicleID follow_vehicle; int32 scrollpos_x; int32 scrollpos_y; + int32 dest_scrollpos_x; + int32 dest_scrollpos_y; }; assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(vp_d)); @@ -412,6 +414,8 @@ struct vp2_d { VehicleID follow_vehicle; int32 scrollpos_x; int32 scrollpos_y; + int32 dest_scrollpos_x; + int32 dest_scrollpos_y; byte data_1; byte data_2; byte data_3; @@ -422,6 +426,8 @@ struct news_d { uint16 follow_vehicle; int32 scrollpos_x; int32 scrollpos_y; + int32 dest_scrollpos_x; + int32 dest_scrollpos_y; NewsItem *ni; }; assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(news_d)); |