calculate the proper pixelRatio

This commit is contained in:
Konstantin Käfer
2014-02-19 14:47:26 +01:00
parent 504b60b93e
commit dcb6c2b787

View File

@@ -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);