src/windows/classes/sun/java2d/windows/GDIWindowSurfaceData.java
Print this page
@@ -208,11 +208,13 @@
// This is needed for AA text.
// Note that even a SolidTextRenderer can dispatch AA text
// if a GlyphVector overrides the AA setting.
// We use getRenderLoops() rather than setting solidloops
// directly so that we get the appropriate loops in XOR mode.
- if (sg2d.loops == null) {
+ if (sg2d.compositeState == SunGraphics2D.COMP_XOR ||
+ sg2d.loops == null)
+ {
// assert(some pipe will always be a LoopBasedPipe)
sg2d.loops = getRenderLoops(sg2d);
}
} else {
super.validatePipe(sg2d);