# HG changeset patch # User anthony # Date 1350043271 -14400 # Node ID ce11c5c59cb8672eeddf9d5ce49563ccbc387854 # Parent 9c2a2aae44a46e0b63b913987672d1488fa4e7a5 7173145: Improve in-memory representation of splashscreens Reviewed-by: bae, mschoene diff --git a/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c b/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c --- jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c +++ jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c @@ -133,6 +133,10 @@ SplashDecodeJpeg(Splash * splash, struct ImageFormat srcFormat; jpeg_read_header(cinfo, TRUE); + + // SplashScreen jpeg converter expects data in RGB format only + cinfo->out_color_space = JCS_RGB; + jpeg_start_decompress(cinfo); SplashCleanup(splash);