Bug 317 - GLJPanel handleReshape bug
Summary: GLJPanel handleReshape bug
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P1 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2007-10-02 01:01 CEST by Sven Gothel
Modified: 2015-09-27 03:09 CEST (History)
0 users

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 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