diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-07 13:01:36 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-07 13:01:36 +0000 |
commit | e90bc1681f4b9cdd2a726332113d161f69217ff4 (patch) | |
tree | ec6140c952f9a287c623e4a9e786e4b5b070635a /viewport.h | |
parent | 45366b4372853ba53b71e0f0b51b8bb79799850b (diff) | |
download | openttd-e90bc1681f4b9cdd2a726332113d161f69217ff4.tar.xz |
(svn r7093) -Codechange: Move DoZoomInOutWindow declaration to viewport.h and rewrite the function
a bit more sensibly.
Diffstat (limited to 'viewport.h')
-rw-r--r-- | viewport.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/viewport.h b/viewport.h index abda49851..ed0d2be3f 100644 --- a/viewport.h +++ b/viewport.h @@ -20,9 +20,17 @@ void AssignWindowViewport(Window *w, int x, int y, int width, int height, uint32 follow_flags, byte zoom); ViewPort *IsPtInWindowViewport(const Window *w, int x, int y); Point GetTileBelowCursor(void); +void UpdateViewportPosition(Window *w); + +enum { + ZOOM_IN = 0, + ZOOM_OUT = 1, + ZOOM_NONE = 2, // hack, used to update the button status +}; + +bool DoZoomInOutWindow(int how, Window *w); void ZoomInOrOutToCursorWindow(bool in, Window * w); Point GetTileZoomCenterWindow(bool in, Window * w); -void UpdateViewportPosition(Window *w); void OffsetGroundSprite(int x, int y); |