(svn r27158) -Codechange: Simplify mapping from viewport to smallmap coordinates by duplicating less code.

This commit is contained in:
frosch
2015-02-22 14:10:44 +00:00
parent e8e49e5dda
commit 06d1d50884
4 changed files with 26 additions and 51 deletions

View File

@@ -25,6 +25,7 @@ void SetSelectionRed(bool);
void DeleteWindowViewport(Window *w);
void InitializeWindowViewport(Window *w, int x, int y, int width, int height, uint32 follow_flags, ZoomLevel zoom);
ViewPort *IsPtInWindowViewport(const Window *w, int x, int y);
Point TranslateXYToTileCoord(const ViewPort *vp, int x, int y, bool clamp_to_map = true);
Point GetTileBelowCursor();
void UpdateViewportPosition(Window *w);