This fixes #41. My fix is achieved by multiplying various values by 2, but I think the proper fix would involve correctly tracking fb size and window size (with glfwSetWindowSizeCallback(window, window_size_callback);) separately rather than assuming fb size == window size.
From glfw docs:
On some machines screen coordinates and pixels are the same, but on others they will not be. There is a second set of functions to retrieve the size, in pixels, of the framebuffer of a window.
This fixes #41. My fix is achieved by multiplying various values by 2, but I think the proper fix would involve correctly tracking fb size and window size (with glfwSetWindowSizeCallback(window, window_size_callback);) separately rather than assuming fb size == window size.
From glfw docs:
See also https://github.com/glfw/glfw/issues/2089 for a similar issue.