diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-06-06 16:44:25 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-06-06 16:44:25 -0400 |
commit | 456122f5f0086ed0dbe1b784266b96e9624aa8e1 (patch) | |
tree | e67b3715b579164e92b9ce4c99d5ce676ae05596 /src/renderer.h | |
parent | d851eae8e7cb4192dcd7213dd1a8b60064156b15 (diff) | |
download | ether-456122f5f0086ed0dbe1b784266b96e9624aa8e1.tar.gz ether-456122f5f0086ed0dbe1b784266b96e9624aa8e1.tar.bz2 ether-456122f5f0086ed0dbe1b784266b96e9624aa8e1.zip |
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.
Diffstat (limited to 'src/renderer.h')
-rw-r--r-- | src/renderer.h | 2 |
1 files changed, 2 insertions, 0 deletions
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: | |||
117 | const Game& game, | 117 | const Game& game, |
118 | bool drawDark = true); | 118 | bool drawDark = true); |
119 | 119 | ||
120 | static std::tuple<int, int, int, int> calculateZoomRect(const Game& game); | ||
121 | |||
120 | private: | 122 | private: |
121 | 123 | ||
122 | sdl_wrapper sdl_; | 124 | sdl_wrapper sdl_; |