Merge pull request #1418 from mapbox/1418-correct-aspect-ratio-after-rotation

Screen stretched on rotation
This commit is contained in:
Konstantin Käfer
2015-05-05 11:41:45 +02:00

View File

@@ -203,6 +203,9 @@ void Painter::render(const Style& style, TransformState state_, TimePoint time)
}
}
resize();
changeMatrix();
// Figure out what buckets we have to draw and what order we have to draw them in.
const auto order = determineRenderOrder(style);
@@ -238,8 +241,6 @@ void Painter::render(const Style& style, TransformState state_, TimePoint time)
}
clear();
resize();
changeMatrix();
drawClippingMasks(sources);
}