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/newgrf_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_gui.cpp') diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index deeb17f4a..aa7ba6699 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -705,7 +705,7 @@ struct NewGRFWindow : public Window { } this->vscroll.cap += delta.y / 14; - this->widget[SNGRFS_FILE_LIST].data = (this->vscroll.cap << 8) + 1; + this->widget[SNGRFS_FILE_LIST].data = (this->vscroll.cap << MAT_ROW_START) + (1 << MAT_COL_START); this->SetupNewGRFWindow(); } -- cgit v1.2.3-54-g00ecf