mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Fix window_icon subsection in window.dox
This commit is contained in:
parent
364774dbc7
commit
cb15669585
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user