tn5250j/src/org/tn5250j Screen5250.java,1.59,1.60

Patrick Bielen <[email protected]> Wed, 30 Jun 2004 07:29:46 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24786/src/org/tn5250j

Modified Files:
	Screen5250.java 
Log Message:
Fix for the screen-painting bug, committed by Kenneth.
Thnx for the quick fix dude !

Index: Screen5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Screen5250.java,v
retrieving revision 1.59
retrieving revision 1.60
diff -C2 -d -r1.59 -r1.60
*** Screen5250.java	30 Jun 2004 06:18:56 -0000	1.59
--- Screen5250.java	30 Jun 2004 07:29:44 -0000	1.60
***************
*** 4008,4019 ****
      if (drawing == false) return;
      //LDC - 18/02/2003 - only update the screen when the window is showing
!     if (this.gui.isShowing())
!     {
!       Rectangle r = new Rectangle(dirty);
! 
! 
!       // update the image
!       updateImage(r);
!     }
        // update dirty to show that we have already painted that region of the
        //   screen so do not do it again.
--- 4008,4019 ----
      if (drawing == false) return;
      //LDC - 18/02/2003 - only update the screen when the window is showing
!     //if (this.gui.isShowing())
!     //{
!     Rectangle r = new Rectangle(dirty);
!     
!     
!     // update the image
!     updateImage(r);
!     //}
        // update dirty to show that we have already painted that region of the
        //   screen so do not do it again.
***************
*** 4022,4026 ****
  //      dirty.setBounds(dirty.x,dirty.height,dirty.width,(int)(tArea.getHeight() - dirty.height));
        //LDC - 12/02/2003 - set drawing to false
!       drawing = false;
  
     }
--- 4022,4026 ----
  //      dirty.setBounds(dirty.x,dirty.height,dirty.width,(int)(tArea.getHeight() - dirty.height));
        //LDC - 12/02/2003 - set drawing to false
!     drawing = false;
  
     }



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com