diff options
author | Leith Bade <leith@mapbox.com> | 2015-01-12 13:30:40 +1100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-01-12 13:30:40 +1100 |
commit | 6aee86d5ff3906ee300ff992eb389d2442f063a6 (patch) | |
tree | 11d6edd1c83498a1923fb1d86e734ef82fe2da59 /platform | |
parent | 166a3e21fac8632cdf5afdf4d38bf429e45dc699 (diff) | |
download | qtlocation-mapboxgl-6aee86d5ff3906ee300ff992eb389d2442f063a6.tar.gz |
Correctly call resize with width and height. Fixes #746
Diffstat (limited to 'platform')
-rw-r--r-- | platform/default/glfw_view.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index 64a33321d5..8f3eb831d4 100644 --- a/platform/default/glfw_view.cpp +++ b/platform/default/glfw_view.cpp @@ -61,10 +61,7 @@ void GLFWView::initialize(mbgl::Map *map_) { int width, height; glfwGetWindowSize(window, &width, &height); - int fbWidth, fbHeight; - glfwGetFramebufferSize(window, &fbWidth, &fbHeight); - - resize(window, 0, 0); + resize(window, width, height); glfwSetCursorPosCallback(window, mouseMove); glfwSetMouseButtonCallback(window, mouseClick); |