<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1169</bug_id>
          
          <creation_ts>2015-07-02 11:01:38 +0200</creation_ts>
          <short_desc>ScreenResSelector doesn&apos;t use the right mean of detecting multi bit depth</short_desc>
          <delta_ts>2019-03-30 06:23:39 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>awt</component>
          <version>2.4.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Julien Gouesse">gouessej</reporter>
          <assigned_to name="Julien Gouesse">gouessej</assigned_to>
          <cc>gouessej</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4744</commentid>
    <comment_count>0</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2015-07-02 11:01:38 +0200</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5419</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-10-09 06:37:21 +0200</bug_when>
    <thetext>pls fix ..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6153</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-03-30 03:13:06 +0100</bug_when>
    <thetext>(In reply to Sven Gothel from comment #1)
&gt; pls fix ..

and java.awt.DisplayMode.BIT_DEPTH_MULTI == -1

well, closing this bug report for this old 2003 demo ;-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>