(svn r17375) -Codechange: remove last direct usage of scrollbar variables

This commit is contained in:
rubidium
2009-09-02 08:58:20 +00:00
parent fc193fd902
commit 62c7948a4f
5 changed files with 20 additions and 30 deletions

View File

@@ -1167,7 +1167,7 @@ public:
virtual void OnResize(Point delta)
{
/* Update the scroll + matrix */
this->vscroll.UpdateCapacity((this->widget[ORDER_WIDGET_ORDER_LIST].bottom - this->widget[ORDER_WIDGET_ORDER_LIST].top - 1) / ORDER_LIST_LINE_HEIGHT);
this->vscroll.UpdateCapacity(delta.y / ORDER_LIST_LINE_HEIGHT);
/* Update the button bars. */
if (this->vehicle->owner == _local_company) {