Bug 1169 - ScreenResSelector doesn't use the right mean of detecting multi bit depth
Summary: ScreenResSelector doesn't use the right mean of detecting multi bit depth
Status: UNCONFIRMED
Alias: None
Product: Jogl
Classification: JogAmp
Component: awt (show other bugs)
Version: 2.4.0
Hardware: All all
: P5 trivial
Assignee: Julien Gouesse
URL:
Depends on:
Blocks:
 
Reported: 2015-07-02 11:01 CEST by Julien Gouesse
Modified: 2015-10-09 06:37 CEST (History)
1 user (show)

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Gouesse 2015-07-02 11:01:38 CEST
This demo assumes that java.awt.DisplayMode.getBitDepth() returns a strictly negative number when multiple bit depths are supported:
https://github.com/sgothel/jogl-demos/blob/master/src/demos/util/ScreenResSelector.java#L66

Actually, the documentation indicates that there is only one possible value in this case:
http://docs.oracle.com/javase/7/docs/api/java/awt/DisplayMode.html#getBitDepth()

It should use java.awt.DisplayMode.BIT_DEPTH_MULTI:
http://docs.oracle.com/javase/7/docs/api/java/awt/DisplayMode.html#BIT_DEPTH_MULTI
Comment 1 Sven Gothel 2015-10-09 06:37:21 CEST
pls fix ..