diff options
author | alberth <alberth@openttd.org> | 2009-07-26 17:29:01 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-07-26 17:29:01 +0000 |
commit | 9856cc9d0a339bace9c50a722e6a2bfc37cbdd88 (patch) | |
tree | abfd00cb0e2915b31761021afe69aa39f372753e /src/window_gui.h | |
parent | 2dd998ab06d0f79445bf96239da9944fa30b7578 (diff) | |
download | openttd-9856cc9d0a339bace9c50a722e6a2bfc37cbdd88.tar.xz |
(svn r16963) -Codechange: Added NWidgetViewport widget.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index ff806d1f1..3ea0f7c2e 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -193,7 +193,7 @@ enum SortButtonState { * A viewport is either following a vehicle (its id in then in #follow_vehicle), or it aims to display a specific * location #dest_scrollpos_x, #dest_scrollpos_y (#follow_vehicle is then #INVALID_VEHICLE). * The actual location being shown is #scrollpos_x, #scrollpos_y. - * @see InitializeViewport(), UpdateViewportPosition(). + * @see InitializeViewport(), UpdateViewportPosition(), UpdateViewportCoordinates(). */ struct ViewportData : ViewPort { VehicleID follow_vehicle; ///< VehicleID to follow if following a vehicle, #INVALID_VEHICLE otherwise. @@ -644,6 +644,7 @@ 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) {} |