changeset 7956:66a892bb28b7

7173145: Improve in-memory representation of splashscreens Reviewed-by: bae, mschoene
author anthony
date Fri, 12 Oct 2012 15:51:44 +0400
parents 74eec13c464e
children 85bf51db473c
files src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c	Tue Sep 25 11:48:00 2012 -0700
+++ b/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);