Merge pull request #747 from mapbox/fix-resize

Correctly call resize with width and height
This commit is contained in:
John Firebaugh
2015-01-12 10:15:31 -08:00

View File

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