Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2011-04-02 16:51:31 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:14:47 +0300
commita9793e04179f033e57da03d9f4d836d56e05ad50 (patch)
treed352bcc0496de581906bf26745e676f75115bc7f /map/navigator.hpp
parent74667184205e9f1910f26c1896eabce1435b4610 (diff)
function extraction refactoring for AdjustToBounds method for limiting ScreenBase to the world bounds.
Diffstat (limited to 'map/navigator.hpp')
-rw-r--r--map/navigator.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/map/navigator.hpp b/map/navigator.hpp
index 5ae1f16c59..cb1000984b 100644
--- a/map/navigator.hpp
+++ b/map/navigator.hpp
@@ -69,6 +69,8 @@ private:
bool CheckMaxScale(ScreenBase const & screen);
bool CheckBorders(ScreenBase const & screen);
+ // adjusting screen to specified limits
+ ScreenBase const AdjustToBounds(ScreenBase const & screen, m2::RectD const & boundRect);
// Internal screen corresponding to the state when navigation began with StartDrag or StartScale.
ScreenBase m_StartScreen;
// Internal screen to do GtoP() and PtoG() calculations. It is always up to date with navigation.