changeset 16070:4d4f21f5c4f4

7173145: Improve in-memory representation of splashscreens Reviewed-by: bae, mschoene
author anthony
date Fri, 12 Oct 2012 15:51:44 +0400
parents d70ba7fdeae0
children 8b0a4953189c
files jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);