7153339: InternalError when drawLine with Xor and Antialiasing
Reviewed-by: prr, flar
--- 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();
}