From d0a47fc1b417d697175b751d3236f66c4e325e91 Mon Sep 17 00:00:00 2001 From: alberth Date: Thu, 16 Jul 2009 16:22:23 +0000 Subject: (svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field. --- src/group_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/group_gui.cpp') diff --git a/src/group_gui.cpp b/src/group_gui.cpp index bf262b2ab..bb12e240e 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -241,8 +241,8 @@ public: break; } - this->widget[GRP_WIDGET_LIST_GROUP].data = (this->vscroll2.cap << 8) + 1; - this->widget[GRP_WIDGET_LIST_VEHICLE].data = (this->vscroll.cap << 8) + 1; + this->widget[GRP_WIDGET_LIST_GROUP].data = (this->vscroll2.cap << MAT_ROW_START) + (1 << MAT_COL_START); + this->widget[GRP_WIDGET_LIST_VEHICLE].data = (this->vscroll.cap << MAT_ROW_START) + (1 << MAT_COL_START); switch (this->vehicle_type) { default: NOT_REACHED(); @@ -671,8 +671,8 @@ public: this->vscroll2.cap += delta.y / PLY_WND_PRC__SIZE_OF_ROW_TINY; this->vscroll.cap += delta.y / (int)this->resize.step_height; - this->widget[GRP_WIDGET_LIST_GROUP].data = (this->vscroll2.cap << 8) + 1; - this->widget[GRP_WIDGET_LIST_VEHICLE].data = (this->vscroll.cap << 8) + 1; + this->widget[GRP_WIDGET_LIST_GROUP].data = (this->vscroll2.cap << MAT_ROW_START) + (1 << MAT_COL_START); + this->widget[GRP_WIDGET_LIST_VEHICLE].data = (this->vscroll.cap << MAT_ROW_START) + (1 << MAT_COL_START); } virtual void OnDropdownSelect(int widget, int index) -- cgit v1.2.3-54-g00ecf