changeset 2991:93d0daa9aa7a

6853488: REGRESSION : A black background is seen for a transparent animated gif image for splash screen Reviewed-by: igor, prr
author bae
date Wed, 06 Oct 2010 12:19:54 +0400
parents b96e6b8761bc
children 6cb79067ea7a
files src/share/native/sun/awt/splashscreen/splashscreen_gif.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	Tue Oct 05 10:23:14 2010 +0400
+++ b/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);
                 }