summaryrefslogtreecommitdiff
path: root/test/headless/headless.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/headless/headless.cpp')
-rw-r--r--test/headless/headless.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/headless/headless.cpp b/test/headless/headless.cpp
index 7e22f76211..24f9fd1a6f 100644
--- a/test/headless/headless.cpp
+++ b/test/headless/headless.cpp
@@ -141,16 +141,15 @@ TEST_P(HeadlessTest, render) {
}
}
- HeadlessView view(display);
+ HeadlessView view(display, width, height, pixelRatio);
DefaultFileSource fileSource(nullptr);
Map map(view, fileSource);
+ map.resize(width, height, pixelRatio);
map.start(MapMode::Still);
map.setClasses(classes);
map.setStyleJSON(style, "test/suite");
-
- view.resize(width, height, pixelRatio);
map.setLatLngZoom(mbgl::LatLng(latitude, longitude), zoom);
map.setBearing(bearing);