From d1d35b95b6e75a263b9395125af7d22faf02f462 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 17 Oct 2009 14:29:10 +0000 Subject: (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows --- src/window_gui.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/window_gui.h') diff --git a/src/window_gui.h b/src/window_gui.h index 2e9b590b8..4204ec9cd 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -257,17 +257,6 @@ public: if (this->cap + this->pos > this->count) this->pos = max(0, this->count - this->cap); } - /** - * Updates the capacity by adding/removing a number of (visible) elements. - * @param difference the difference in capacity - * @note updates the position if needed - */ - void UpdateCapacity(int difference) - { - if (difference == 0) return; - this->SetCapacity(this->cap + difference); - } - /** * Sets the position of the first visible element * @param position the position of the element -- cgit v1.2.3-54-g00ecf