| 1093 | } |
| 1094 | |
| 1095 | void Framework::OnSize(int w, int h) |
| 1096 | { |
| 1097 | if (m_drapeEngine != nullptr) |
| 1098 | m_drapeEngine->Resize(std::max(w, 2), std::max(h, 2)); |
| 1099 | |
| 1100 | /// @todo Expected that DrapeEngine::Resize does all the work, but nope .. |
| 1101 | /// - Strange, but seems like iOS works fine without it. |
| 1102 | /// - Test Android screen orientation and position mark in map and navigation modes. |
| 1103 | SetVisibleViewport(m2::RectD(0, 0, w, h)); |
| 1104 | } |
| 1105 | |
| 1106 | namespace |
| 1107 | { |