maxImageDrawingWidth = imageDrawingWidth;
}
public void setFullscreen(DisplayMode displayMode) {
// TODO handle refresh rate and bitdepth
ScreenMode setup = null;
if (displayMode != null) {
ScreenMode current = screen.getCurrentScreenMode();
for (ScreenMode mode: screen.getScreenModes()) {
if (current.getRotation() == mode.getRotation() &&
mode.getRotatedWidth() == displayMode.getWidth() &&
mode.getRotatedHeight() == displayMode.getHeight() &&
mode.getMonitorMode().getRefreshRate() == displayMode.getRefreshRate() &&
mode.getMonitorMode().getSurfaceSize().getBitsPerPixel() == displayMode.getColorDepth()) {
setup = mode;