diff options
author | alberth <alberth@openttd.org> | 2009-12-20 20:08:39 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-12-20 20:08:39 +0000 |
commit | 5a083f183e5ece4e379a12d7f5b927e54a83d04a (patch) | |
tree | 1d1fa960c0fffff8e0462b8086f4c46434b91773 /src/window_gui.h | |
parent | 20debea202d87ce595b2ebc353d22204e9820efc (diff) | |
download | openttd-5a083f183e5ece4e379a12d7f5b927e54a83d04a.tar.xz |
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 3cc9f45ea..d2635d881 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -247,6 +247,8 @@ public: if (this->cap + this->pos > this->count) this->pos = max(0, this->count - this->cap); } + void SetCapacityFromWidget(Window *w, int widget, int padding = 0); + /** * Sets the position of the first visible element * @param position the position of the element |