Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Correctly call resize with width and height. Fixes #746
Browse files Browse the repository at this point in the history
  • Loading branch information
Leith Bade committed Jan 12, 2015
1 parent 166a3e2 commit 6aee86d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions platform/default/glfw_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6aee86d

Please sign in to comment.