Display mode settings : fullscreen.displaywidth =(1440,900,16,0)
Current display resolution: 1440*900 scaled.
Code :
fullscreen.pixelperframe = ((fullscreen.speed - 10) > 1) ? (fullscreen.speed-10) : 1;
DisplayMode dmode = new DisplayMode(fullscreen.displaywidth,fullscreen.displayheight,16,0);
Exception in thread "main" java.lang.IllegalArgumentException: Invalid display mode at sun.awt.CGraphicsDevice.nativeSetDisplayMode(Native Method) at sun.awt.CGraphicsDevice.setDisplayMode(CGraphicsDevice.java:234) at FullScreen.main(FullScreen.java:237)
System Macbook Air 2012
MyQuestion :
What is the proper display mode settings that work in Macbook Air , or the code should be different.
You can use
GraphicsDevice#getDisplayModes
to list the availableDisplayMode
s that a device can support, for exampleWhich on mini-mac outputs...