mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-09 08:24:23 +00:00
Update current DisplayMode when the Display's parent is resized.
This commit is contained in:
parent
eff8493ef6
commit
1dd8817855
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,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…
Add table
Add a link
Reference in a new issue