(svn r19807) -Codechange: instead of having an unnamed enum and passing it as an int, name the enum and pass that

This commit is contained in:
rubidium
2010-05-13 08:56:01 +00:00
parent 32a8202446
commit b4747b00e6
3 changed files with 5 additions and 4 deletions

View File

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