diff options
author | alberth <alberth@openttd.org> | 2009-07-16 16:22:23 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-07-16 16:22:23 +0000 |
commit | d0a47fc1b417d697175b751d3236f66c4e325e91 (patch) | |
tree | 13681f47fc388cc4b331c11eca22c08c1b06fe83 /src/autoreplace_gui.cpp | |
parent | 3cba03c5eb540f3a29aee96a6d8426ab297aed9d (diff) | |
download | openttd-d0a47fc1b417d697175b751d3236f66c4e325e91.tar.xz |
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r-- | src/autoreplace_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index 37ea2c51a..0b78db723 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -209,7 +209,7 @@ public: this->vscroll.cap = this->resize.step_height == 14 ? 8 : 4; Widget *widget = this->widget; - widget[RVW_WIDGET_LEFT_MATRIX].data = widget[RVW_WIDGET_RIGHT_MATRIX].data = (this->vscroll.cap << 8) + 1; + widget[RVW_WIDGET_LEFT_MATRIX].data = widget[RVW_WIDGET_RIGHT_MATRIX].data = (this->vscroll.cap << MAT_ROW_START) + (1 << MAT_COL_START); if (vehicletype != VEH_TRAIN) { /* Since it's not a train we will hide the train only widgets. */ @@ -409,7 +409,7 @@ public: Widget *widget = this->widget; - widget[RVW_WIDGET_LEFT_MATRIX].data = widget[RVW_WIDGET_RIGHT_MATRIX].data = (this->vscroll2.cap << 8) + 1; + widget[RVW_WIDGET_LEFT_MATRIX].data = widget[RVW_WIDGET_RIGHT_MATRIX].data = (this->vscroll.cap << MAT_ROW_START) + (1 << MAT_COL_START); if (delta.x != 0) { /* We changed the width of the window so we have to resize the lists. |