7173145: Improve in-memory representation of splashscreens
authoranthony
Fri, 12 Oct 2012 15:51:44 +0400
changeset 16070 4d4f21f5c4f4
parent 14225 d70ba7fdeae0
child 16071 8b0a4953189c
7173145: Improve in-memory representation of splashscreens Reviewed-by: bae, mschoene
jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c
--- a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c	Tue Sep 25 11:48:00 2012 -0700
+++ b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c	Fri Oct 12 15:51:44 2012 +0400
@@ -133,6 +133,10 @@
     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);