mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2025-12-06 08:01:59 +01:00
Update current DisplayMode when the Display's parent is resized.
This commit is contained in:
parent
8f6dcd3a6d
commit
073da79e95
|
|
@ -270,7 +270,7 @@ public final class Display {
|
|||
}
|
||||
|
||||
private static DisplayMode getEffectiveMode() {
|
||||
return !isFullscreen() && parent != null ? new DisplayMode(parent.getWidth(), parent.getHeight()) : current_mode;
|
||||
return !isFullscreen() && parent != null ? (current_mode = new DisplayMode(parent.getWidth(), parent.getHeight())) : current_mode;
|
||||
}
|
||||
|
||||
private static int getWindowX() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue