clearer comments

This commit is contained in:
Justin R. Miller
2014-05-22 14:24:54 -07:00
parent bccba97020
commit 12594ce8f1

View File

@@ -425,13 +425,12 @@ void Map::updateRenderState() {
void Map::prepare() {
view.make_active();
// Update transitions
// Update transform transitions.
animationTime = util::now();
if (transform.needsTransition()) {
transform.updateTransitions(animationTime);
}
const TransformState oldState = state;
state = transform.currentState();
@@ -440,7 +439,6 @@ void Map::prepare() {
oldState.getFramebufferHeight() != state.getFramebufferHeight();
if (pixelRatioChanged) {
// We have a pixelratio change
style.sprite = std::make_shared<Sprite>(*this, state.getPixelRatio());
style.sprite->load(kSpriteURL);
@@ -453,6 +451,7 @@ void Map::prepare() {
style.cascade(state.getNormalizedZoom());
// Update style transitions.
animationTime = util::now();
if (style.needsTransition()) {
style.updateTransitions(animationTime);