Bug 317

Summary: GLJPanel handleReshape bug
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P1    
Version: 1   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:50:49 CET


---- Reported by himuro 2007-10-02 01:01:34 ----

Hi.

I found a wrong algorithm in GLJPanel.
This code recreate pbuffer but judge algorithm is wrong.

--
[version] jogl-1.1.1-rc3
[src] GLJPanel.java
[line] 967-968

        if ((panelWidth > pbufferWidth           )       || (panelHeight >
pbufferHeight) ||
            (panelWidth < (pbufferWidth / shrinkFactor)) || (panelHeight <
(pbufferWidth / shrinkFactor))) {

--
in last statement
[wrong] (panelHeight < (pbufferWidth / shrinkFactor)
[right] (panelHeight < (pbufferHeight / shrinkFactor)

Please correct source.

Thanks.

--
--------------------------------------------------
Denso IT Laboratory, Inc.
   Keisuke UTO
  E-mail: kuto@d-itlab.co.jp
--------------------------------------------------



---- Additional Comments From kbr 2007-10-02 03:58:14 ----

Fixed obvious bug in algorithm as per submitter's comment. Fix will be present
in nightly builds dated 10/3 and later. Thanks for the patch.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:50 EDT  ---

This bug was previously known as _bug_ 317 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=317