8323210: Update the usage of cmsFLAGS_COPY_ALPHA
Reviewed-by: prr
This commit is contained in:
parent
f3be138eb8
commit
aba19334ea
src/java.desktop/share/native/liblcms
test/jdk/sun/java2d/cmm/ColorConvertOp
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2007, 2024, 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
|
||||
@ -177,8 +177,13 @@ JNIEXPORT jlong JNICALL Java_sun_java2d_cmm_lcms_LCMS_createNativeTransform
|
||||
}
|
||||
}
|
||||
|
||||
cmsUInt32Number dwFlags = 0;
|
||||
if (T_EXTRA(inFormatter) > 0 && T_EXTRA(outFormatter) > 0) {
|
||||
dwFlags |= cmsFLAGS_COPY_ALPHA;
|
||||
}
|
||||
|
||||
sTrans = cmsCreateMultiprofileTransform(iccArray, j,
|
||||
inFormatter, outFormatter, renderingIntent, cmsFLAGS_COPY_ALPHA);
|
||||
inFormatter, outFormatter, renderingIntent, dwFlags);
|
||||
|
||||
(*env)->ReleaseLongArrayElements(env, profileIDs, ids, 0);
|
||||
|
||||
|
@ -52,7 +52,7 @@ import static java.awt.image.BufferedImage.TYPE_USHORT_GRAY;
|
||||
|
||||
/*
|
||||
* @test
|
||||
* @bug 8012229 8300725 8279216
|
||||
* @bug 8012229 8300725 8279216 8323210
|
||||
* @summary one more test to check the alpha channel
|
||||
*/
|
||||
public final class ColCvtAlphaDifferentSrcDst {
|
||||
|
Loading…
x
Reference in New Issue
Block a user