(svn r7095) -Codechange: Move MaxZoomIn function to viewport.h and change it to MaxZoomInOut

with a zoom parameter and a pointer to the window which's viewport we want to zoom.
This commit is contained in:
Darkvater
2006-11-07 13:08:42 +00:00
parent 3a2c773411
commit 7c59305e96
2 changed files with 6 additions and 6 deletions

View File

@@ -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);