Resize view from map thread

This commit is contained in:
John Firebaugh
2015-04-23 11:11:12 -07:00
parent a625ba8a09
commit 230027e514
11 changed files with 23 additions and 16 deletions

View File

@@ -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) {