summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-07-01 12:39:21 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-07-08 10:40:05 +0200
commit675ddddee78fa36d60d55c266033f05edda4be48 (patch)
treee7e09473400600070778b620d1cd1eb0a78d7b7d /bin
parent3a07cb2f1edb4e8f5e076ec0fef32f733676a95c (diff)
downloadqtlocation-mapboxgl-675ddddee78fa36d60d55c266033f05edda4be48.tar.gz
Make pixelRatio constant across a Map object lifetime
also moves framebuffer size out of TransformState into its own object
Diffstat (limited to 'bin')
-rw-r--r--bin/render.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/render.cpp b/bin/render.cpp
index 5ae83c1d48..3da0c93586 100644
--- a/bin/render.cpp
+++ b/bin/render.cpp
@@ -85,13 +85,12 @@ int main(int argc, char *argv[]) {
fileSource.setAccessToken(std::string(token));
}
- HeadlessView view;
+ HeadlessView view(pixelRatio, width, height);
Map map(view, fileSource, MapMode::Still);
map.setStyleJSON(style, ".");
map.setClasses(classes);
- map.resize(width, height, pixelRatio);
map.setLatLngZoom({ lat, lon }, zoom);
map.setBearing(bearing);