mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r21764) -Change: Make the scrollbar associated to a NWidgetMatrix scroll in steps of the matrix when using the wheel or the scrollbar-buttons.
This commit is contained in:
parent
da09ebc59a
commit
57c6133c3b
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue