summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-02 08:58:20 +0000
committerrubidium <rubidium@openttd.org>2009-09-02 08:58:20 +0000
commit5cb22df0f56420759e727b9e9fd16e379a358fb2 (patch)
tree23e18970c93398f1879757bed924b5be3a861ac7 /src/order_gui.cpp
parent900aedf270319b5fbcd3373dfa268a5a5c1cfc78 (diff)
downloadopenttd-5cb22df0f56420759e727b9e9fd16e379a358fb2.tar.xz
(svn r17375) -Codechange: remove last direct usage of scrollbar variables
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index fb7498f2f..ebd40f050 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -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) {