[core] s/Update::Zoom/Update/RecalculateStyle/

This commit is contained in:
Bruno de Oliveira Abinader
2016-03-06 16:25:55 +02:00
parent 4909169996
commit f736e46ca4
4 changed files with 14 additions and 14 deletions

View File

@@ -150,7 +150,7 @@ void MapContext::loadStyleJSON(const std::string& json, const std::string& base)
// created but before a style is loaded
data.loading = true;
updateAsync(Update::DefaultTransition | Update::Classes | Update::Zoom | Update::Annotations);
updateAsync(Update::DefaultTransition | Update::Classes | Update::RecalculateStyle | Update::Annotations);
}
void MapContext::update() {
@@ -175,7 +175,7 @@ void MapContext::update() {
style->cascade();
}
if (updateFlags & Update::Classes || updateFlags & Update::Zoom) {
if (updateFlags & Update::Classes || updateFlags & Update::RecalculateStyle) {
style->recalculate(transformState.getZoom());
}
@@ -249,7 +249,7 @@ bool MapContext::renderSync(const TransformState& state, const FrameData& frame)
view.afterRender();
if (style->hasTransitions()) {
updateAsync(Update::Zoom);
updateAsync(Update::RecalculateStyle);
} else if (painter->needsAnimation()) {
updateAsync(Update::Repaint);
}