From 30b02dd70910f19da7006e855dc47af3af6b86f8 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. (cherry picked from commit 0e9ec7788b4985a0df698080258e4091d18dcc3b) --- README.md | 1 + include/GLFW/glfw3.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7db24057..493568f2 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,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 96f53351..546620ed 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -2279,8 +2279,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