diff options
author | alberth <alberth@openttd.org> | 2010-11-20 14:15:02 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-20 14:15:02 +0000 |
commit | 3b0ee6557113104416f465fb780d9900fb7a842a (patch) | |
tree | 4c6600efd2700df08b38c84cd594dd11043ee501 /src/viewport_func.h | |
parent | 5d72befbcd0486900062a4163c3eb52d5d27f7d5 (diff) | |
download | openttd-3b0ee6557113104416f465fb780d9900fb7a842a.tar.xz |
(svn r21270) -Doc: Doxyment updates and additions. Removal of doxyment in code.
Diffstat (limited to 'src/viewport_func.h')
-rw-r--r-- | src/viewport_func.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/viewport_func.h b/src/viewport_func.h index cc90a93b2..ff59dbb9a 100644 --- a/src/viewport_func.h +++ b/src/viewport_func.h @@ -40,6 +40,12 @@ void ZoomInOrOutToCursorWindow(bool in, Window * w); Point GetTileZoomCenterWindow(bool in, Window * w); void HandleZoomMessage(Window *w, const ViewPort *vp, byte widget_zoom_in, byte widget_zoom_out); +/** + * Zoom a viewport as far as possible in the given direction. + * @param how Zooming direction. + * @param w Window owning the viewport. + * @pre \a how should not be #ZOOM_NONE. + */ static inline void MaxZoomInOut(ZoomStateChange how, Window *w) { while (DoZoomInOutWindow(how, w)) {}; |