diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-04-21 15:22:45 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-04-21 23:12:10 +0200 |
commit | 2a0365b3d992fb602fd91b218b4a8647ddb46975 (patch) | |
tree | 54ec865630b8292ce84eb47fff78f407411926ab /src/company_gui.cpp | |
parent | 96b78bc2cd9790e89228c53b4803a78320fc20bd (diff) | |
download | openttd-2a0365b3d992fb602fd91b218b4a8647ddb46975.tar.xz |
Cleanup: Remove unnecessary parameter of GetScrolledRowFromWidget()
Line height defaults to the resize height of the relevant widget, which is
set in all cases. Therefore it is not necessary to specify this value every time.
Additionally fixes scrolled padding for the framerate window.
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r-- | src/company_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 29701b514..2fe20d135 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -956,7 +956,7 @@ public: break; case WID_SCL_MATRIX: { - uint row = this->vscroll->GetScrolledRowFromWidget(pt.y, this, WID_SCL_MATRIX, 0, this->line_height); + uint row = this->vscroll->GetScrolledRowFromWidget(pt.y, this, WID_SCL_MATRIX); if (row >= this->rows) return; if (this->livery_class < LC_GROUP_RAIL) { |