fix changing fullscreen option not working instantly (close #131)

This commit is contained in:
yugecin
2018-10-02 22:44:54 +02:00
parent d9646a5feb
commit 21c552bd16
2 changed files with 14 additions and 6 deletions

View File

@@ -372,11 +372,6 @@ public class DisplayContainer implements ErrorDumpable, SkinChangedListener {
}
public void setDisplayMode(int w, int h, boolean fullscreen) throws Exception {
if (width == w && height == h) {
Display.setFullscreen(fullscreen);
return;
}
DisplayMode displayMode = null;
if (fullscreen) {
final int bpp = this.nativeDisplayMode.getBitsPerPixel();