use of java.awt.DisplayMode in project lionengine by b3dgs.
the class ScreenAwtTest method testFullscreen.
/**
* Test full screen.
*/
@Test
void testFullscreen() {
Medias.setLoadFromJar(ScreenAwtTest.class);
final DisplayMode res = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayModes()[0];
final Config config = new Config(new Resolution(res.getWidth(), res.getHeight(), res.getRefreshRate()), res.getBitDepth(), false, Medias.create("image.png"));
try {
testScreen(config);
} catch (final LionEngineException exception) {
// Skip test
if (!ScreenFullAwt.ERROR_SWITCH.equals(exception.getMessage())) {
throw exception;
}
}
}
Aggregations