7153339: InternalError when drawLine with Xor and Antialiasing
authorbagiras
Thu, 06 Sep 2012 17:57:31 +0400
changeset 13771 77ca6d7c53d2
parent 13770 c50a78763e19
child 13772 2a9e4500ab11
7153339: InternalError when drawLine with Xor and Antialiasing Reviewed-by: prr, flar
jdk/src/windows/classes/sun/java2d/ScreenUpdateManager.java
--- a/jdk/src/windows/classes/sun/java2d/ScreenUpdateManager.java	Thu Sep 06 14:59:54 2012 +0400
+++ b/jdk/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();
     }