| 72 | } |
| 73 | |
| 74 | void 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 | |
| 85 | m2::PointD Navigator::GtoP(m2::PointD const & pt) const |
| 86 | { |