8227392: Colors with alpha are painted incorrectly on Linux, after JDK-8214579

8224825: java/awt/Color/AlphaColorTest.java fails in linux-x64 system

Reviewed-by: prr
This commit is contained in:
Anton Litvinov 2019-07-16 15:15:45 +01:00
parent c0d870559f
commit cf5433ff56
3 changed files with 12 additions and 8 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -54,7 +54,6 @@ import sun.java2d.pipe.Region;
import sun.java2d.pipe.ShapeDrawPipe;
import sun.java2d.pipe.TextPipe;
import sun.java2d.pipe.ValidatePipe;
import sun.java2d.x11.X11SurfaceData;
import sun.java2d.x11.XSurfaceData;
import sun.font.FontManagerNativeLibrary;
@ -244,7 +243,7 @@ public abstract class XRSurfaceData extends XSurfaceData {
*/
public static XRWindowSurfaceData createData(X11ComponentPeer peer) {
XRGraphicsConfig gc = getGC(peer);
return new XRWindowSurfaceData(peer, gc, X11SurfaceData.getSurfaceType(gc, Transparency.OPAQUE));
return new XRWindowSurfaceData(peer, gc, gc.getSurfaceType());
}
/**