diff options
author | tron <tron@openttd.org> | 2005-07-17 20:14:58 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-17 20:14:58 +0000 |
commit | 59d4ab37520b36c869d5849eef7dff8a40dc54db (patch) | |
tree | 77598901e6af2d9f689f88f5426191005af2fc62 /viewport.h | |
parent | 1d11bbb34da6bb1cfd8d8351f61940c92027ed55 (diff) | |
download | openttd-59d4ab37520b36c869d5849eef7dff8a40dc54db.tar.xz |
(svn r2626) static, const, misc.
Diffstat (limited to 'viewport.h')
-rw-r--r-- | viewport.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/viewport.h b/viewport.h index 920e09607..90b0facf1 100644 --- a/viewport.h +++ b/viewport.h @@ -14,11 +14,10 @@ struct ViewPort { void SetSelectionRed(bool); /* viewport.c */ -Point MapXYZToViewport(ViewPort *vp, uint x, uint y, uint z); void AssignWindowViewport(Window *w, int x, int y, int width, int height, uint32 follow_flags, byte zoom); void SetViewportPosition(Window *w, int x, int y); -ViewPort *IsPtInWindowViewport(Window *w, int x, int y); +ViewPort *IsPtInWindowViewport(const Window *w, int x, int y); Point GetTileBelowCursor(void); void ZoomInOrOutToCursorWindow(bool in, Window * w); Point GetTileZoomCenterWindow(bool in, Window * w); @@ -36,7 +35,7 @@ void AddChildSpriteScreen(uint32 image, int x, int y); void StartSpriteCombine(void); void EndSpriteCombine(void); -void HandleViewportClicked(ViewPort *vp, int x, int y); +void HandleViewportClicked(const ViewPort *vp, int x, int y); void PlaceObject(void); void SetRedErrorSquare(TileIndex tile); void SetTileSelectSize(int w, int h); |