diff options
author | frosch <frosch@openttd.org> | 2013-10-13 13:44:58 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-10-13 13:44:58 +0000 |
commit | 27a77d2c0991a1bff10a225e00e2227172bb1ee3 (patch) | |
tree | b306215829f089de7a155bc0d318530488f112c0 /src/linkgraph/linkgraph_gui.h | |
parent | dcec8b9abdf4c7fb87d6aa29e407bdf182ab6864 (diff) | |
download | openttd-27a77d2c0991a1bff10a225e00e2227172bb1ee3.tar.xz |
(svn r25861) -Fix [FS#5760]: Scale linkgraph legend according to text dimensions.
Diffstat (limited to 'src/linkgraph/linkgraph_gui.h')
-rw-r--r-- | src/linkgraph/linkgraph_gui.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/linkgraph/linkgraph_gui.h b/src/linkgraph/linkgraph_gui.h index 6edcb38a4..c1aaccf24 100644 --- a/src/linkgraph/linkgraph_gui.h +++ b/src/linkgraph/linkgraph_gui.h @@ -100,6 +100,7 @@ public: LinkGraphLegendWindow(WindowDesc *desc, int window_number); void SetOverlay(LinkGraphOverlay *overlay); + virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize); virtual void DrawWidget(const Rect &r, int widget) const; virtual void OnClick(Point pt, int widget, int click_count); virtual void OnInvalidateData(int data = 0, bool gui_scope = true); |