changeset 5046 | d2c53a73b580 |
parent 5045 | 846098142ffe |
child 5122 | 3aa375cb5e8e |
--- a/viewport.h Tue Nov 07 13:06:02 2006 +0000 +++ b/viewport.h Tue Nov 07 13:08:42 2006 +0000 @@ -33,6 +33,11 @@ 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);