fix warnings

This commit is contained in:
Konstantin Käfer
2014-08-18 14:05:52 +02:00
parent 2076d3d97b
commit 5a59b5f5fc
7 changed files with 6 additions and 9 deletions

View File

@@ -532,13 +532,8 @@ void Map::prepare() {
transform.updateTransitions(animationTime);
}
const TransformState oldState = state;
state = transform.currentState();
bool pixelRatioChanged = oldState.getPixelRatio() != state.getPixelRatio();
bool dimensionsChanged = oldState.getFramebufferWidth() != state.getFramebufferWidth() ||
oldState.getFramebufferHeight() != state.getFramebufferHeight();
animationTime = util::now();
updateSources();
style->updateProperties(state.getNormalizedZoom(), animationTime);