diff options
author | rubidium <rubidium@openttd.org> | 2009-09-02 07:17:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-02 07:17:15 +0000 |
commit | e69e3378b02b143f646dcd4ea3542dd1fb4bd7aa (patch) | |
tree | b499099e506adb7e26325b96a7051f310131769c /src/window_gui.h | |
parent | 4b9b85812781d4e1c23e503bde4ed5de9cdabca4 (diff) | |
download | openttd-e69e3378b02b143f646dcd4ea3542dd1fb4bd7aa.tar.xz |
(svn r17367) -Codechange: make the autoreplace, bridge and build vehicle GUIs use the scrollbar wrappers
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 2276092cb..312b954bf 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -264,6 +264,7 @@ public: */ void UpdateCapacity(int difference) { + if (difference == 0) return; this->SetCapacity(this->cap + difference); } @@ -285,6 +286,7 @@ public: */ void UpdatePosition(int difference) { + if (difference == 0) return; this->SetPosition(Clamp(this->pos + difference, 0, this->count - this->cap)); } }; |