Skip to content

Commit

Permalink
Fit high version resize behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Jun 16, 2024
1 parent 5354db9 commit b9fa503
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/org/lwjgl/opengl/Display.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
};

Expand Down

0 comments on commit b9fa503

Please sign in to comment.