| 141 | } |
| 142 | |
| 143 | void DrapeEngine::RecoverSurface(int w, int h, bool recreateContextDependentResources) |
| 144 | { |
| 145 | if (m_choosePositionMode) |
| 146 | { |
| 147 | m_threadCommutator->PostMessage(ThreadsCommutator::ResourceUploadThread, |
| 148 | make_unique_dp<ShowChoosePositionMarkMessage>(), MessagePriority::Normal); |
| 149 | } |
| 150 | |
| 151 | if (recreateContextDependentResources) |
| 152 | { |
| 153 | RecacheGui(false); |
| 154 | RecacheMapShapes(); |
| 155 | m_threadCommutator->PostMessage(ThreadsCommutator::RenderThread, |
| 156 | make_unique_dp<RecoverContextDependentResourcesMessage>(), MessagePriority::Normal); |
| 157 | } |
| 158 | |
| 159 | ResizeImpl(w, h); |
| 160 | } |
| 161 | |
| 162 | void DrapeEngine::Resize(int w, int h) |
| 163 | { |
no test coverage detected