if (VERBOSE) System.err.println("JoglPipeline.validGraphicsMode()");
// FIXME: believe this should do exactly what the native code
// used to, but not 100% sure (also in theory should only run
// this code on the Windows platform? What about Mac OS X?)
DisplayMode currentMode =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode();
// Note: on X11 platforms, a bit depth < 0 simply indicates that
// multiple visuals are supported on the current display mode
if (VERBOSE) System.err.println(" Returning " + (currentMode.getBitDepth() < 0 ||
currentMode.getBitDepth() > 8));
return (currentMode.getBitDepth() < 0 ||
currentMode.getBitDepth() > 8);
}