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

Method OnSize

libs/map/framework.cpp:1095–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093}
1094
1095void 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
1106namespace
1107{

Callers 4

mainFunction · 0.45
ResizeMethod · 0.45
resizeGLMethod · 0.45
UNIT_TESTFunction · 0.45

Calls 1

ResizeMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.36