summaryrefslogtreecommitdiff
path: root/src/widget_type.h
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2021-04-21 15:22:45 +0100
committerMichael Lutz <michi@icosahedron.de>2021-04-21 23:12:10 +0200
commit2a0365b3d992fb602fd91b218b4a8647ddb46975 (patch)
tree54ec865630b8292ce84eb47fff78f407411926ab /src/widget_type.h
parent96b78bc2cd9790e89228c53b4803a78320fc20bd (diff)
downloadopenttd-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/widget_type.h')
-rw-r--r--src/widget_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget_type.h b/src/widget_type.h
index c88727a2f..a5b323b87 100644
--- a/src/widget_type.h
+++ b/src/widget_type.h
@@ -748,7 +748,7 @@ public:
}
}
- int GetScrolledRowFromWidget(int clickpos, const Window * const w, int widget, int padding = 0, int line_height = -1) const;
+ int GetScrolledRowFromWidget(int clickpos, const Window * const w, int widget, int padding = 0) const;
EventState UpdateListPositionOnKeyPress(int &list_position, uint16 keycode) const;
};