From 1cc1d4ea08ae02c3cc9b4dd1474845456c17d1bc Mon Sep 17 00:00:00 2001 From: Sudarsana Babu Nagineni Date: Tue, 26 Mar 2019 00:00:37 +0200 Subject: [core] Add setter/getter for size property in MapOptions --- platform/glfw/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/glfw') diff --git a/platform/glfw/main.cpp b/platform/glfw/main.cpp index c27e5fe8ce..9f87e579a7 100644 --- a/platform/glfw/main.cpp +++ b/platform/glfw/main.cpp @@ -110,7 +110,7 @@ int main(int argc, char *argv[]) { mbgl::ThreadPool threadPool(4); GLFWRendererFrontend rendererFrontend { std::make_unique(backend, view->getPixelRatio(), threadPool), backend }; - mbgl::Map map(rendererFrontend, backend, view->getSize(), view->getPixelRatio(), threadPool, mbgl::MapOptions(), resourceOptions); + mbgl::Map map(rendererFrontend, backend, view->getPixelRatio(), threadPool, mbgl::MapOptions().withSize(view->getSize()), resourceOptions); backend.setMap(&map); -- cgit v1.2.1