Fix Window#setIcons issue

This commit is contained in:
JeremyStar™ 2024-10-16 13:21:32 +02:00
parent 37ac235662
commit 665ea05041
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
2 changed files with 2 additions and 2 deletions

View file

@ -363,7 +363,7 @@ public final class GlfwWindow extends Window {
if (isTerminated()) if (isTerminated())
return; return;
super.setIcons(icons); this.icons = icons;
if (icons != null) if (icons != null)
try (GLFWImage.Buffer iconsBuffer = GLFWImage.malloc(icons.length)) { try (GLFWImage.Buffer iconsBuffer = GLFWImage.malloc(icons.length)) {
getLogger().diag("GlfwWindow#setIcons » icons.length = " + icons.length); getLogger().diag("GlfwWindow#setIcons » icons.length = " + icons.length);

View file

@ -222,7 +222,7 @@ public abstract class Window implements AutoCloseable {
* @since v1-alpha6 * @since v1-alpha6
*/ */
@Setter @Setter
private @NotNull Path @Nullable [] icons; protected @NotNull Path @Nullable [] icons;
/** /**
* Contains the size of this window. * Contains the size of this window.