Fix window_icon subsection in window.dox

This commit is contained in:
ws909 2023-03-09 17:41:33 +01:00
parent 364774dbc7
commit cb15669585

View File

@ -902,10 +902,14 @@ sequential rows, starting from the top-left corner.
To revert to the default window icon, pass in an empty image array.
@code
glfwSetWindowIcon(window, 0, NULL);
@endcode
On Windows and X11, the window's title bar and taskbar icons are set with this method.
On MacOS, a `NULL` window handle may be passed to set the application's Dock icon.
Some platforms support querying an optimal size for its icons.
Some platforms support querying for an optimal size for its icons.
You can ask for this size by passing a `NULL` window handle, a count of zero,
and a valid pointer to an image with its `pixels` field set to `NULL`:
@ -919,11 +923,6 @@ glfwSetWindowIcon(window, 1, &image);
free(image.pixels);
@endcode
@code
glfwSetWindowIcon(window, 0, NULL);
@endcode
@subsection window_monitor Window monitor
Full screen windows are associated with a specific monitor. You can get the