summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-05-11 15:08:44 +0000
committerglx <glx@openttd.org>2008-05-11 15:08:44 +0000
commitdacd2c5de8fb7b36f046a08e7f447f9497dcf8d6 (patch)
treedfb592610399f3c49e4292af8aacfd992b50d368 /src/industry_gui.cpp
parentee3c14b344c70017c12c3a2a56748e0283a0fe07 (diff)
downloadopenttd-dacd2c5de8fb7b36f046a08e7f447f9497dcf8d6.tar.xz
(svn r13047) -Codechange: remove vp_d
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index db1a93e63..5104827e7 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -433,7 +433,7 @@ enum IndustryViewWidgets {
};
/** Information to store about the industry window */
-struct indview_d : public vp_d {
+struct indview_d {
byte editbox_line; ///< The line clicked to open the edit box
byte clicked_line; ///< The line of the button that has been clicked
byte clicked_button; ///< The button that has been clicked (to raise)
@@ -601,8 +601,8 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
w->viewport->height += e->we.sizing.diff.y;
w->viewport->virtual_width += e->we.sizing.diff.x;
w->viewport->virtual_height += e->we.sizing.diff.y;
- WP(w, vp_d).dest_scrollpos_x -= e->we.sizing.diff.x;
- WP(w, vp_d).dest_scrollpos_y -= e->we.sizing.diff.y;
+ w->viewport->dest_scrollpos_x -= e->we.sizing.diff.x;
+ w->viewport->dest_scrollpos_y -= e->we.sizing.diff.y;
UpdateViewportPosition(w);
break;