From 2a0365b3d992fb602fd91b218b4a8647ddb46975 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 21 Apr 2021 15:22:45 +0100 Subject: 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. --- src/widget_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widget_type.h') 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; }; -- cgit v1.2.3-54-g00ecf