summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-04-14 18:58:33 -0400
committerKonstantin Käfer <mail@kkaefer.com>2014-04-14 18:58:33 -0400
commit2e86f2582f3724d9b7b93ae9f3a9ee267b78e4bd (patch)
treec28b9a0f607fd9bcf03706ec9cdb168680ebc86e /common
parent4dfecc6c78bb3d3c5b897145ab69d5dcb442b60d (diff)
downloadqtlocation-mapboxgl-2e86f2582f3724d9b7b93ae9f3a9ee267b78e4bd.tar.gz
fix api
Diffstat (limited to 'common')
-rw-r--r--common/map_view.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/map_view.cpp b/common/map_view.cpp
index 162060950b..8957c2f43a 100644
--- a/common/map_view.cpp
+++ b/common/map_view.cpp
@@ -127,7 +127,7 @@ public:
int fb_width, fb_height;
glfwGetFramebufferSize(window, &fb_width, &fb_height);
- mapView->map.resize(width, height, fb_width, fb_height);
+ mapView->map.resize(width, height, (float)fb_width / (float)width, fb_width, fb_height);
}
static void mouseclick(GLFWwindow *window, int button, int action, int modifiers) {