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/network | |
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/network')
-rw-r--r-- | src/network/network_content_gui.cpp | 2 | ||||
-rw-r--r-- | src/network/network_gui.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 652526def..9bcc195f6 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -693,7 +693,7 @@ public: { this->vscroll.cap += delta.y / (int)this->resize.step_height; - this->widget[NCLWW_MATRIX].data = (this->vscroll.cap << 8) + 1; + this->widget[NCLWW_MATRIX].data = (this->vscroll.cap << MAT_ROW_START) + (1 << MAT_COL_START); SetVScrollCount(this, this->content.Length()); diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 46e623f45..9623ac11a 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -722,7 +722,7 @@ public: { this->vscroll.cap += delta.y / (int)this->resize.step_height; - this->widget[NGWW_MATRIX].data = (this->vscroll.cap << 8) + 1; + this->widget[NGWW_MATRIX].data = (this->vscroll.cap << MAT_ROW_START) + (1 << MAT_COL_START); SetVScrollCount(this, this->servers.Length()); |