Mac OS X: Added support for org.lwjgl.opengl.Window.undecorated
This commit is contained in:
parent
bc6cabc1fd
commit
69fc946640
|
@ -69,7 +69,8 @@ final class MacOSXFrame extends Frame implements WindowListener, ComponentListen
|
||||||
addComponentListener(this);
|
addComponentListener(this);
|
||||||
canvas = new MacOSXGLCanvas();
|
canvas = new MacOSXGLCanvas();
|
||||||
add(canvas, BorderLayout.CENTER);
|
add(canvas, BorderLayout.CENTER);
|
||||||
setUndecorated(fullscreen);
|
boolean undecorated = Boolean.getBoolean("org.lwjgl.opengl.Window.undecorated");
|
||||||
|
setUndecorated(fullscreen || undecorated);
|
||||||
if ( fullscreen ) {
|
if ( fullscreen ) {
|
||||||
getDevice().setFullScreenWindow(this);
|
getDevice().setFullScreenWindow(this);
|
||||||
getDevice().setDisplayMode(requested_mode);
|
getDevice().setDisplayMode(requested_mode);
|
||||||
|
|
Loading…
Reference in New Issue