summaryrefslogtreecommitdiff
path: root/src/viewport_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-13 08:56:01 +0000
committerrubidium <rubidium@openttd.org>2010-05-13 08:56:01 +0000
commit3118292b1461fb573964008da745326d53d246ab (patch)
tree76493f3d4146dffae10f38de9e47e98e24fd9fb2 /src/viewport_func.h
parentd568a4258bedec709501cf048bf0015030dcd20d (diff)
downloadopenttd-3118292b1461fb573964008da745326d53d246ab.tar.xz
(svn r19807) -Codechange: instead of having an unnamed enum and passing it as an int, name the enum and pass that
Diffstat (limited to 'src/viewport_func.h')
-rw-r--r--src/viewport_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewport_func.h b/src/viewport_func.h
index dbe965d4f..a2dd0df18 100644
--- a/src/viewport_func.h
+++ b/src/viewport_func.h
@@ -35,12 +35,12 @@ void UpdateViewportPosition(Window *w);
*/
void MarkAllViewportsDirty(int left, int top, int right, int bottom);
-bool DoZoomInOutWindow(int how, Window *w);
+bool DoZoomInOutWindow(ZoomStateChange how, Window *w);
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);
-static inline void MaxZoomInOut(int how, Window *w)
+static inline void MaxZoomInOut(ZoomStateChange how, Window *w)
{
while (DoZoomInOutWindow(how, w)) {};
}