--- old/src/java.desktop/unix/classes/sun/java2d/xr/XRColor.java 2017-12-07 19:54:27.178822731 +0530 +++ new/src/java.desktop/unix/classes/sun/java2d/xr/XRColor.java 2017-12-07 19:54:26.766822731 +0530 @@ -73,7 +73,7 @@ XRColor c = new XRColor(); for (int i = 0; i < pixels.length; i++) { - c.setColorValues(pixels[i], true); + c.setColorValues(pixels[i]); colorValues[i * 4 + 0] = c.alpha; colorValues[i * 4 + 1] = c.red; colorValues[i * 4 + 2] = c.green; @@ -83,7 +83,7 @@ return colorValues; } - public void setColorValues(int pixel, boolean pre) { + public void setColorValues(int pixel) { long pix = XRUtils.intToULong(pixel); alpha = (int) (((pix & 0xFF000000) >> 16) + 255); red = (int) (((pix & 0x00FF0000) >> 8) + 255); @@ -93,13 +93,6 @@ if (alpha == 255) { alpha = 0; } - - if (!pre) { - double alphaMult = XRUtils.XFixedToDouble(alpha); - this.red = (int) (red * alphaMult); - this.green = (int) (green * alphaMult); - this.blue = (int) (blue * alphaMult); - } } public static int byteToXRColorValue(int byteValue) {