6853488: REGRESSION : A black background is seen for a transparent animated gif image for splash screen
authorbae
Wed, 06 Oct 2010 12:19:54 +0400
changeset 6812 83cac1fcd3ed
parent 6811 a0fd2f4b2197
child 6813 42f6c9c441b5
6853488: REGRESSION : A black background is seen for a transparent animated gif image for splash screen Reviewed-by: igor, prr
jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c
--- a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	Tue Oct 05 10:23:14 2010 +0400
+++ b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	Wed Oct 06 12:19:54 2010 +0400
@@ -277,7 +277,7 @@
                 ImageRect dstRect;
                 rgbquad_t fillColor = 0;                        // 0 is transparent
 
-                if (transparentColor > 0) {
+                if (transparentColor < 0) {
                     fillColor= MAKE_QUAD_GIF(
                         colorMap->Colors[gif->SBackGroundColor], 0xff);
                 }