changeset 5312:7c3ffcb3ff8f

7153339: InternalError when drawLine with Xor and Antialiasing Reviewed-by: prr, flar
author bagiras
date Tue, 11 Sep 2012 13:12:54 +0400
parents cebe174fb519
children da6b89f5cd86
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	Tue Sep 11 13:10:55 2012 +0400
+++ b/src/windows/classes/sun/java2d/ScreenUpdateManager.java	Tue Sep 11 13:12:54 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();
     }