summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-24 14:53:55 +0000
committerrubidium <rubidium@openttd.org>2009-10-24 14:53:55 +0000
commitca0521f89fc53be22e18cb56f6d9c358555246af (patch)
tree709e00edcb606c69ea67ffbf1ba2a115c0bedb70 /src/window_gui.h
parentc3992ab7b69461189f217be73136997cd097ee62 (diff)
downloadopenttd-ca0521f89fc53be22e18cb56f6d9c358555246af.tar.xz
(svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 4378b694a..2d182ba8b 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -771,9 +771,8 @@ public:
/**
* Called after the window got resized.
* For nested windows with a viewport, call NWidgetViewport::UpdateViewportCoordinates.
- * @param delta The amount of which the window size changed.
*/
- virtual void OnResize(Point delta) {}
+ virtual void OnResize() {}
/**
* A dropdown option associated to this window has been selected.