From 456122f5f0086ed0dbe1b784266b96e9624aa8e1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 6 Jun 2018 16:44:25 -0400 Subject: zooming fixes when zooming out, the view center stays the same (shifted by map edges). when zooming in, the view center becomes the player position at the start of zoom. the boundary of player movement is now also set to the target view area at start of zoom. --- src/renderer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/renderer.h') diff --git a/src/renderer.h b/src/renderer.h index 4aa27bb..a34b231 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -117,6 +117,8 @@ public: const Game& game, bool drawDark = true); + static std::tuple calculateZoomRect(const Game& game); + private: sdl_wrapper sdl_; -- cgit 1.4.1