mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Separated window and framebuffer sizes.
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ int main(void)
|
||||
float ratio;
|
||||
int width, height;
|
||||
|
||||
glfwGetWindowSize(window, &width, &height);
|
||||
glfwGetFramebufferSize(window, &width, &height);
|
||||
ratio = width / (float) height;
|
||||
|
||||
glViewport(0, 0, width, height);
|
||||
|
||||
Reference in New Issue
Block a user