tn5250j/src/org/tn5250j Screen5250.java,1.55,1.56

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

Modified Files:
	Screen5250.java 
Log Message:
Fix screen updating from Luc - LDC

Index: Screen5250.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/Screen5250.java,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** Screen5250.java	26 Jun 2004 08:51:08 -0000	1.55
--- Screen5250.java	27 Jun 2004 08:08:18 -0000	1.56
***************
*** 4447,4452 ****
  //         bi.drawImageBuffer(gg2d,x,y,width,height);
  //      }
!          if (gui.isVisible()) {
!             if (height > 0 && width > 0) {
  
           // We now redraw the selected area rectangle.
--- 4447,4452 ----
  //         bi.drawImageBuffer(gg2d,x,y,width,height);
  //      }
! //         if (gui.isVisible()) {
! //            if (height > 0 && width > 0) {
  
           // We now redraw the selected area rectangle.
***************
*** 4455,4467 ****
           }
  
!          if (!fullRepaint) {
!             bi.drawImageBuffer(gg2d,x,y,width,height);
!          }
!          else
!             gui.repaint();
  
  //            System.out.println(" something went right finally " + gui.isVisible() +
  //                           " height " + height + " width " + width);
!          }
  //            else {
     //            bi.drawImageBuffer(gg2d);
--- 4455,4467 ----
           }
  
! //         if (!fullRepaint) {
! //            bi.drawImageBuffer(gg2d,x,y,width,height);
! //         }
! //         else
! //            gui.repaint();
  
  //            System.out.println(" something went right finally " + gui.isVisible() +
  //                           " height " + height + " width " + width);
! //         }
  //            else {
     //            bi.drawImageBuffer(gg2d);
***************
*** 4470,4474 ****
  
  //            }
!       }
  
     }
--- 4470,4483 ----
  
  //            }
! //      }
!      if (x == 0)
!        width += bi.offLeft;
!      else
!        x += bi.offLeft;
!      if (y == 0)
!        height += bi.offTop;
!      else
!        y += bi.offTop;
!      gui.repaint(x,y,width, height);
  
     }



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