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

Correctly call resize with width and height #747

Merged
merged 1 commit into from
Jan 12, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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