summaryrefslogtreecommitdiff
path: root/linux/main.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-03-03 12:55:32 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-03-03 12:55:32 +0100
commitf850856cecf3358f5cf63a8cfae00a1bd65a6d8e (patch)
tree526aed06ca82ccfe72677c64e0e7c235b0de153e /linux/main.cpp
parentc076da0ae2f2e8c8221b727d9197ae5257c703f9 (diff)
downloadqtlocation-mapboxgl-f850856cecf3358f5cf63a8cfae00a1bd65a6d8e.tar.gz
move requests to global threadpool
Diffstat (limited to 'linux/main.cpp')
-rw-r--r--linux/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/main.cpp b/linux/main.cpp
index e9b6e4c36f..a6814ab92e 100644
--- a/linux/main.cpp
+++ b/linux/main.cpp
@@ -39,8 +39,13 @@ public:
glfwSetWindowUserPointer(window, this);
glfwMakeContextCurrent(window);
+ int width, height;
+ glfwGetWindowSize(window, &width, &height);
+ int fb_width, fb_height;
+ glfwGetFramebufferSize(window, &fb_width, &fb_height);
+
settings.load();
- map.setup();
+ map.setup((double)fb_width / width);
resize(window, 0, 0);