MCPcopy Create free account
hub / github.com/comaps/comaps / OnSize

Method OnSize

libs/drape_frontend/navigator.cpp:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void Navigator::OnSize(int w, int h)
75{
76 m2::RectD const & worldR = df::GetWorldRect();
77
78 m_Screen.OnSize(0, 0, w, h);
79 m_Screen = ShrinkAndScaleInto(m_Screen, worldR);
80
81 m_StartScreen.OnSize(0, 0, w, h);
82 m_StartScreen = ShrinkAndScaleInto(m_StartScreen, worldR);
83}
84
85m2::PointD Navigator::GtoP(m2::PointD const & pt) const
86{

Callers 3

RuleDrawerMethod · 0.45
UNIT_TESTFunction · 0.45

Calls 2

GetWorldRectFunction · 0.85
ShrinkAndScaleIntoFunction · 0.85

Tested by 1

UNIT_TESTFunction · 0.36