diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-03-03 12:55:32 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-03-03 12:55:32 +0100 |
commit | f850856cecf3358f5cf63a8cfae00a1bd65a6d8e (patch) | |
tree | 526aed06ca82ccfe72677c64e0e7c235b0de153e /linux/main.cpp | |
parent | c076da0ae2f2e8c8221b727d9197ae5257c703f9 (diff) | |
download | qtlocation-mapboxgl-f850856cecf3358f5cf63a8cfae00a1bd65a6d8e.tar.gz |
move requests to global threadpool
Diffstat (limited to 'linux/main.cpp')
-rw-r--r-- | linux/main.cpp | 7 |
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); |