diff options
author | frosch <frosch@openttd.org> | 2011-01-09 20:40:35 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-01-09 20:40:35 +0000 |
commit | 57c6133c3b657084f195528b2429f1de3c994896 (patch) | |
tree | 59f6ab0187021dee0f3a6f3c0af2f0623239d97e /src | |
parent | da09ebc59a80bf3b21046df8b0e722e00e81d2e4 (diff) | |
download | openttd-57c6133c3b657084f195528b2429f1de3c994896.tar.xz |
(svn r21764) -Change: Make the scrollbar associated to a NWidgetMatrix scroll in steps of the matrix when using the wheel or the scrollbar-buttons.
Diffstat (limited to 'src')
-rw-r--r-- | src/widget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index 4170b2a01..84fdadbb8 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -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); } /** |