summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2015-01-12 13:30:40 +1100
committerLeith Bade <leith@mapbox.com>2015-01-12 13:30:40 +1100
commit6aee86d5ff3906ee300ff992eb389d2442f063a6 (patch)
tree11d6edd1c83498a1923fb1d86e734ef82fe2da59 /platform
parent166a3e21fac8632cdf5afdf4d38bf429e45dc699 (diff)
downloadqtlocation-mapboxgl-6aee86d5ff3906ee300ff992eb389d2442f063a6.tar.gz
Correctly call resize with width and height. Fixes #746
Diffstat (limited to 'platform')
-rw-r--r--platform/default/glfw_view.cpp5
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);