diff options
author | alberth <alberth@openttd.org> | 2010-07-26 13:02:28 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-07-26 13:02:28 +0000 |
commit | 3a1451644a0eae226545818adbde8a8a8c45eab7 (patch) | |
tree | 130026ba4b8d6f2d094d756f434671a4cbc52569 /src/window_gui.h | |
parent | 80cc566553ca1eb33566e0b05a49b7112d98718d (diff) | |
download | openttd-3a1451644a0eae226545818adbde8a8a8c45eab7.tar.xz |
(svn r20221) -Codechange: Move unscrolled row calculation into a function.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 83c7e3bb9..d01e8e4af 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -528,6 +528,7 @@ public: bool SetFocusedWidget(byte widget_index); void HandleButtonClick(byte widget); + int GetRowFromWidget(int clickpos, int widget, int padding, int line_height) const; void RaiseButtons(bool autoraise = false); void CDECL SetWidgetsDisabledState(bool disab_stat, int widgets, ...); |