Update current DisplayMode when the Display's parent is resized.

This commit is contained in:
Ioannis Tsakpinis 2011-05-31 13:32:38 +00:00
parent eff8493ef6
commit 1dd8817855
1 changed files with 1 additions and 1 deletions

View File

@ -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() {