void GlueMapWindow::UpdateDisplayMode() { /* not using MapWindowBlackboard here because these methods are called by the main thread */ enum DisplayMode new_mode = GetNewDisplayMode(CommonInterface::GetUIState(), CommonInterface::Calculated()); if (DisplayMode != new_mode && new_mode == DM_CIRCLING) offsetHistory.reset(); DisplayMode = new_mode; SwitchZoomClimb(); }
void GlueMapWindow::UpdateDisplayMode() { /* not using MapWindowBlackboard here because these methods are called by the main thread */ enum DisplayMode new_mode = GetNewDisplayMode(CommonInterface::GetUIState(), CommonInterface::Calculated()); bool was_circling = (display_mode == DM_CIRCLING); bool is_circling = (new_mode == DM_CIRCLING); if (!was_circling && is_circling) offset_history.Reset(); display_mode = new_mode; if (is_circling != was_circling) SwitchZoomClimb(); }