From 0e9ec7788b4985a0df698080258e4091d18dcc3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 22 Apr 2021 23:07:50 +0200 Subject: [PATCH] Fix description of video mode ordering in docs The two final sorting criteria were not included in the documentation. Fixes #1889. --- README.md | 1 + include/GLFW/glfw3.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 29c988b5..54dcec80 100644 --- a/README.md +++ b/README.md @@ -294,6 +294,7 @@ skills. - Andrew Corrigan - Bailey Cosier - Noel Cower + - CuriouserThing - Jason Daly - Jarrod Davis - Olivier Delannoy diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index ffb49c1a..d38acbb0 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -2422,8 +2422,9 @@ GLFWAPI GLFWmonitorfun glfwSetMonitorCallback(GLFWmonitorfun callback); * * This function returns an array of all video modes supported by the specified * monitor. The returned array is sorted in ascending order, first by color - * bit depth (the sum of all channel depths) and then by resolution area (the - * product of width and height). + * bit depth (the sum of all channel depths), then by resolution area (the + * product of width and height), then resolution width and finally by refresh + * rate. * * @param[in] monitor The monitor to query. * @param[out] count Where to store the number of video modes in the returned