tn5250j/src/org/tn5250j Screen5250.java,1.57,1.58

"Kenneth J. Pouncey" <[email protected]> Sun, 27 Jun 2004 08:44:38 +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-serv6580

Modified Files:
	Screen5250.java 
Log Message:
Only update screen when it is showing from Luc - LDC

Index: Screen5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Screen5250.java,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** Screen5250.java	27 Jun 2004 08:18:53 -0000	1.57
--- Screen5250.java	27 Jun 2004 08:44:36 -0000	1.58
***************
*** 4007,4010 ****
--- 4007,4013 ----
      //LDC - 12/02/2003 - check if we must repaint it
      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);
  
***************
*** 4012,4015 ****
--- 4015,4019 ----
        // 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.



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