summaryrefslogtreecommitdiff
path: root/viewport.h
diff options
context:
space:
mode:
Diffstat (limited to 'viewport.h')
-rw-r--r--viewport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/viewport.h b/viewport.h
index 9cdcdc3d5..018a1693d 100644
--- a/viewport.h
+++ b/viewport.h
@@ -33,6 +33,11 @@ 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)
+{
+ while (DoZoomInOutWindow(how, w) ) {};
+}
+
void OffsetGroundSprite(int x, int y);
void DrawGroundSprite(uint32 image);