summaryrefslogtreecommitdiff
path: root/test/api
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-04-23 11:11:12 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-04-28 14:32:24 -0400
commit230027e5140a8aa3c6cb24ddf3f5aee20506ac8f (patch)
tree979fbd2cd84fedbb1bdb04c3968fafb1264264f9 /test/api
parenta625ba8a0976ef8417a2609700187c5633be2c58 (diff)
downloadqtlocation-mapboxgl-230027e5140a8aa3c6cb24ddf3f5aee20506ac8f.tar.gz
Resize view from map thread
Diffstat (limited to 'test/api')
-rw-r--r--test/api/repeated_render.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/api/repeated_render.cpp b/test/api/repeated_render.cpp
index 58df8e83b6..ce7e6cbb0b 100644
--- a/test/api/repeated_render.cpp
+++ b/test/api/repeated_render.cpp
@@ -25,7 +25,7 @@ TEST(API, RepeatedRender) {
Map map(view, fileSource, MapMode::Still);
{
- view.resize(128, 512, 1);
+ map.resize(128, 512, 1);
map.setStyleJSON(style, "test/suite");
std::promise<std::unique_ptr<const StillImage>> promise;
map.renderStill([&promise](std::unique_ptr<const StillImage> image) {
@@ -39,7 +39,7 @@ TEST(API, RepeatedRender) {
}
{
- view.resize(512, 512, 2);
+ map.resize(512, 512, 2);
map.setStyleJSON(style, "TEST_DATA/suite");
std::promise<std::unique_ptr<const StillImage>> promise;
map.renderStill([&promise](std::unique_ptr<const StillImage> image) {