From 7935a366f4020cc9397e796ae3f346c5ccc86c38 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Fri, 12 Jun 2015 03:13:23 +0200 Subject: [PATCH] Fixed particles example on Retina displays. --- examples/particles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/particles.c b/examples/particles.c index dc9e9fc8..64f2e831 100644 --- a/examples/particles.c +++ b/examples/particles.c @@ -986,11 +986,11 @@ int main(int argc, char** argv) glfwMakeContextCurrent(window); glfwSwapInterval(1); - glfwSetWindowSizeCallback(window, resize_callback); + glfwSetFramebufferSizeCallback(window, resize_callback); glfwSetKeyCallback(window, key_callback); // Set initial aspect ratio - glfwGetWindowSize(window, &width, &height); + glfwGetFramebufferSize(window, &width, &height); resize_callback(window, width, height); // Upload particle texture