<?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>1085</bug_id>
          
          <creation_ts>2014-10-02 20:32:15 +0200</creation_ts>
          <short_desc>GLJPanel regression while printing w/ invisible GLJPanel: Zero size panel size</short_desc>
          <delta_ts>2019-03-29 17:54:47 +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.3.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>5af9b44a893db3b27ddcd2a13d0008ec21880649
650862cc994b1a3ee6d2af970b5b1d8d73ccd2a8</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4332</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-02 20:32:15 +0200</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4333</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-02 20:34:06 +0200</bug_when>
    <thetext>This is a regression due to commit 84f367a73c5b16dcebfd877e82e1c2cb90ae74ce:
   GLJPanel Cleanup: Remove initial FBO reshape; 
   ** Propagate reshape only if differs from panel-size; ** &lt;- this one
   Use pre-fetched panel-size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4334</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-02 20:44:33 +0200</bug_when>
    <thetext>5af9b44a893db3b27ddcd2a13d0008ec21880649
  Increase and fix DEBUG verbosity in GLJPanel 
  to catch reshape regression during print

650862cc994b1a3ee6d2af970b5b1d8d73ccd2a8

This is a regression due to commit 84f367a73c5b16dcebfd877e82e1c2cb90ae74ce:
   GLJPanel Cleanup: Remove initial FBO reshape;
   ** Propagate reshape only if differs from panel-size; ** &lt;- this one
   Use pre-fetched panel-size.

Above commit only issued &apos;sendReshape&apos;
if the reshape-size differs from the actual panel-size.

Note: The reshape-size is propagated to panel-size either in
  [1] initializeBackendImpl(..) or
  [2] handleReshape(..) @ paintComponent.

While printing w/ an invisible GLJPanel the reshape-size
has not yet propagated to the panel-size (see above)
and two consecutive reshape calls will cause the last one to be dropped.

With this patch we have:

GLJPanel.addNotify()
GLJPanel.reshape.0 null resize [paint] [ this 0x0, pixelScale 1x1, panel 560x420] -&gt; 0x0 * 1x1 -&gt; 0x0, reshapeSize 0x0
GLJPanel.reshape.0 null resize [paint] [ this 560x420, pixelScale 1x1, panel 560x420] -&gt; 560x420 * 1x1 -&gt; 560x420, reshapeSize 560x420
GLJPanel.setupPrint: scale 1.000000 / 1.000000, samples 0, tileSz -1 x -1
GLJPanel.createAndInitializeBackend.1: [printing] 560x420 @ scale 1x1 -&gt; 560x420 @ scale 1x1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>