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 | 2851f58efa0d4e69a1113195af0f865dc944d414 (patch) | |
tree | 17d1923b83a591294a9f935eda1159e520609c81 /src/window.h | |
parent | 493494a35dc85419476569ce29e54ed6f9bc198c (diff) | |
download | openttd-2851f58efa0d4e69a1113195af0f865dc944d414.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)); |