Update current DisplayMode when the Display's parent is resized.
This commit is contained in:
parent
eff8493ef6
commit
1dd8817855
|
@ -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…
Reference in New Issue