From 62b56b799a7d4fcd1a8f151eed878054b862da5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Wed, 26 Oct 2016 15:22:31 -0700 Subject: [core] change std::array to mbgl::Size --- bin/render.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/render.cpp b/bin/render.cpp index ad29d91993..22668e2dc1 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -27,8 +27,8 @@ int main(int argc, char *argv[]) { double bearing = 0; double pitch = 0; - int width = 512; - int height = 512; + uint32_t width = 512; + uint32_t height = 512; static std::string output = "out.png"; std::string cache_file = "cache.sqlite"; std::string asset_root = "."; @@ -84,9 +84,9 @@ int main(int argc, char *argv[]) { } HeadlessBackend backend; - OffscreenView view(backend.getContext(), {{ static_cast(width), static_cast(height) }}); + OffscreenView view(backend.getContext(), { width, height }); ThreadPool threadPool(4); - Map map(backend, view.getSize(), 1, fileSource, threadPool, MapMode::Still); + Map map(backend, view.size, 1, fileSource, threadPool, MapMode::Still); map.setStyleJSON(style); map.setClasses(classes); -- cgit v1.2.1