diff options
Diffstat (limited to 'macosx/main.mm')
-rw-r--r-- | macosx/main.mm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/macosx/main.mm b/macosx/main.mm index c9d3045c3a..ff8e91e338 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -39,8 +39,14 @@ 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); |