2
0
Эх сурвалжийг харах

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)
Camilla Löwy 4 жил өмнө
parent
commit
30b02dd709
2 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 1 0
      README.md
  2. 3 2
      include/GLFW/glfw3.h

+ 1 - 0
README.md

@@ -177,6 +177,7 @@ skills.
  - Andrew Corrigan
  - Bailey Cosier
  - Noel Cower
+ - CuriouserThing
  - Jason Daly
  - Jarrod Davis
  - Olivier Delannoy

+ 3 - 2
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