changeset 5829:d14dc0ae1c2c

7153339: InternalError when drawLine with Xor and Antialiasing Reviewed-by: prr, flar
author bagiras
date Thu, 06 Sep 2012 17:57:31 +0400
parents 47442b1b01eb
children b8a1ff892b33
files src/windows/classes/sun/java2d/ScreenUpdateManager.java
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/classes/sun/java2d/ScreenUpdateManager.java	Thu Sep 06 14:59:54 2012 +0400
+++ b/src/windows/classes/sun/java2d/ScreenUpdateManager.java	Thu Sep 06 17:57:31 2012 +0400
@@ -110,6 +110,11 @@
     public SurfaceData getReplacementScreenSurface(WComponentPeer peer,
                                                    SurfaceData oldsd)
     {
+        SurfaceData surfaceData = peer.getSurfaceData();
+        if (surfaceData.isValid()) {
+            return surfaceData;
+        }
+        peer.replaceSurfaceData();
         return peer.getSurfaceData();
     }