diff --git a/geometry/screenbase.cpp b/geometry/screenbase.cpp index c493fc4e8d..acabce0e17 100644 --- a/geometry/screenbase.cpp +++ b/geometry/screenbase.cpp @@ -19,6 +19,12 @@ ScreenBase::ScreenBase() : // UpdateDependentParameters(); } +ScreenBase::ScreenBase(m2::RectI const & pxRect, m2::RectD const & glbRect) +{ + OnSize(pxRect); + SetFromRect(glbRect); +} + void ScreenBase::UpdateDependentParameters() { m_PtoG = math::Shift( /// 5. shifting on (E0, N0) diff --git a/geometry/screenbase.hpp b/geometry/screenbase.hpp index df0be885af..1aee190597 100644 --- a/geometry/screenbase.hpp +++ b/geometry/screenbase.hpp @@ -47,6 +47,7 @@ protected: public: ScreenBase(); + ScreenBase(m2::RectI const & pxRect, m2::RectD const & glbRect); void SetFromRect(m2::RectD const & rect); void SetOrg(m2::PointD const & p);