diff options
Diffstat (limited to 'javax/swing/RepaintManager.java')
-rw-r--r-- | javax/swing/RepaintManager.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/javax/swing/RepaintManager.java b/javax/swing/RepaintManager.java index afed7ec8e..773371489 100644 --- a/javax/swing/RepaintManager.java +++ b/javax/swing/RepaintManager.java @@ -38,6 +38,7 @@ exception statement from your version. */ package javax.swing; +import gnu.classpath.SystemProperties; import gnu.java.awt.LowPriorityEvent; import java.applet.Applet; @@ -58,6 +59,8 @@ import java.util.Iterator; import java.util.Set; import java.util.WeakHashMap; +import javax.swing.text.JTextComponent; + /** * <p>The repaint manager holds a set of dirty regions, invalid components, * and a double buffer surface. The dirty regions and invalid components @@ -261,7 +264,9 @@ public class RepaintManager invalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMaximumSize = new Dimension(2000,2000); - doubleBufferingEnabled = true; + doubleBufferingEnabled = + SystemProperties.getProperty("gnu.swing.doublebuffering", "true") + .equals("true"); offscreenBuffers = new WeakHashMap(); } @@ -426,7 +431,6 @@ public class RepaintManager { if (w <= 0 || h <= 0 || !component.isShowing()) return; - component.computeVisibleRect(rectCache); SwingUtilities.computeIntersection(x, y, w, h, rectCache); |