in the class LWJGLPropertiesDialog there is the method:
private static String[] getDepths(String resolution, DisplayMode[] modes) {
ArrayList<String> depths = new ArrayList<String>(4);
for (int i = 0; i < modes.length; i++) {
// Filter out all bit depths lower than 16 - Java incorrectly
// reports
// them as valid depths though the monitor does not support them
if (modes[i].getBitsPerPixel() < 16)
continue;
String res = modes[i].getWidth() + " x " + modes[i].getHeight();
String depth = String.valueOf(modes[i].getBitsPerPixel()) + " bpp";
if (res.equals(resolution) && !depths.contains(depth))
depths.add(depth);
}
String[] res = new String[depths.size()];
depths.toArray(res);
return res;
}
is there any source for the comment
// Filter out all bit depths lower than 16 - Java incorrectly
// reports
// them as valid depths though the monitor does not support them
Im interested in further information about this topic but couldn't find any of them using google.
im interested why Java recognize resolutions lower than 16 bit as valid even they aren't. and i want to know if there is any link or something like that where i can find more about this theme
i think there has to be a reason why the developer of the code fragment i posted in post1 has made his comment and removed all resolutions with depth below 16bit.
as you already mentioned, this is because openGL doesn't accept resolutions beyond 16 bits. I think that could be true, but i would be really happy if theres a link, paper, book or whatever, which proves that statement.