Changeset - r17017:aa8fb4c93536
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-01-09 20:40:35
frosch@openttd.org
(svn r21764) -Change: Make the scrollbar associated to a NWidgetMatrix scroll in steps of the matrix when using the wheel or the scrollbar-buttons.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/widget.cpp
Show inline comments
 
@@ -1404,6 +1404,7 @@ void NWidgetMatrix::SetCount(int count)
 
	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);
 
}
 

	
 
/**
0 comments (0 inline, 0 general)