<?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>860</bug_id>
          
          <creation_ts>2013-10-12 19:57:14 +0200</creation_ts>
          <short_desc>AWT Printing (AWTTilePainter): Shall use the enclosing integer rectangle of the scaled double precision clipping rect</short_desc>
          <delta_ts>2013-10-12 20:08:19 +0200</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</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>38bc1dbe6d2402218bc348516545b25e4db177b9</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3098</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-12 19:57:14 +0200</bug_when>
    <thetext>AWTTilePainter simply rounds the scaled double precision clipping rectangle 
to receive the integer rectangle.

This leads to uncovered drawing areas, since the integer rectangle position 
could be greater - and the size could be smaller than the double precision source.

To get the enclosing rectangle, we need to use 
  iPos = floor(position)
  iSize = ceil(position+size) - floor(position) 

.. turns our that the double precision &apos;Rectangle Rectangle2D.getBounds()&apos;
already performs this math.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>