From e32db547bfdf3121eaf119153794533345216b76 Mon Sep 17 00:00:00 2001 From: bagiras Date: Thu, 6 Sep 2012 17:57:31 +0400 Subject: [PATCH] 7153339: InternalError when drawLine with Xor and Antialiasing Reviewed-by: prr, flar --- src/windows/classes/sun/java2d/ScreenUpdateManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/windows/classes/sun/java2d/ScreenUpdateManager.java b/src/windows/classes/sun/java2d/ScreenUpdateManager.java index 49816c55d..27da53ef2 100644 --- a/src/windows/classes/sun/java2d/ScreenUpdateManager.java +++ b/src/windows/classes/sun/java2d/ScreenUpdateManager.java @@ -110,6 +110,11 @@ public class ScreenUpdateManager { public SurfaceData getReplacementScreenSurface(WComponentPeer peer, SurfaceData oldsd) { + SurfaceData surfaceData = peer.getSurfaceData(); + if (surfaceData.isValid()) { + return surfaceData; + } + peer.replaceSurfaceData(); return peer.getSurfaceData(); } -- GitLab