From b9fa503c959103071c983602a1a6a8a3c00df379 Mon Sep 17 00:00:00 2001 From: arcade_kappa Date: Sun, 16 Jun 2024 20:11:22 +0800 Subject: [PATCH] Fit high version resize behavior --- src/main/java/org/lwjgl/opengl/Display.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/lwjgl/opengl/Display.java b/src/main/java/org/lwjgl/opengl/Display.java index 42f1a371c..3ce9dc9eb 100644 --- a/src/main/java/org/lwjgl/opengl/Display.java +++ b/src/main/java/org/lwjgl/opengl/Display.java @@ -241,10 +241,11 @@ public void invoke(long window, boolean iconified) { @Override public void invoke(long window, int width, int height) { - boolean minimized = width == 0 && height == 0; - latestResized = true && !minimized; - latestWidth = width; - latestHeight = height; + if (width != 0 && height != 0) { + latestResized = true; + latestWidth = width; + latestHeight = height; + } } };