fix changing fullscreen option not working instantly (close #131)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user