This fixes a thinko of mine.

2006-06-15  Roman Kennke  <[EMAIL PROTECTED]>

        PR 28037
        * javax/swing/RepaintManager.java
        (blitBuffer): Substract coordinates the other way around.

/Roman

-- 
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
Index: javax/swing/RepaintManager.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/RepaintManager.java,v
retrieving revision 1.39
diff -u -1 -0 -r1.39 RepaintManager.java
--- javax/swing/RepaintManager.java	14 Jun 2006 16:11:57 -0000	1.39
+++ javax/swing/RepaintManager.java	15 Jun 2006 13:41:20 -0000
@@ -704,21 +704,21 @@
       {
         bufferRoot = SwingUtilities.getWindowAncestor(bufferRoot);
         SwingUtilities.convertRectangleToAncestor(root, rootRect, bufferRoot);
       }
 
     Graphics g = root.getGraphics();
     Image buffer = (Image) offscreenBuffers.get(bufferRoot);
 
     // Make sure we have a sane clip at this point.
     g.clipRect(rootRect.x, rootRect.y, rootRect.width, rootRect.height);
-    g.drawImage(buffer, rootRect.x - bufferRect.x, rootRect.y - bufferRect.y,
+    g.drawImage(buffer, bufferRect.x - rootRect.x, bufferRect.y - rootRect.y,
                 root);
     g.dispose();
 
   }
 
   /**
    * Finds and returns the nearest heavyweight parent for the specified
    * component. If the component isn't contained inside a heavyweight parent,
    * this returns null.
    *

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to