changeset 17027:96e98a584a28 draft

(svn r21764) -Change: Make the scrollbar associated to a NWidgetMatrix scroll in steps of the matrix when using the wheel or the scrollbar-buttons.
author frosch <frosch@openttd.org>
date Sun, 09 Jan 2011 20:40:35 +0000
parents 0b2b2fbffd00
children 8d8425b1ff89
files src/widget.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1404,6 +1404,7 @@
 	count += -this->pip_inter + this->pip_pre + this->pip_post; // We counted an inter too much in the multiplication above
 	this->sb->SetCount(count);
 	this->sb->SetCapacity(this->sb->IsVertical() ? this->current_y : this->current_x);
+	this->sb->SetStepSize(this->sb->IsVertical() ? this->widget_h  : this->widget_w);
 }
 
 /**