jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c

Print this page
rev 5674 : 7173145: Improve in-memory representation of splashscreens
Reviewed-by: bae, mschoene

@@ -131,10 +131,14 @@
     int rowStride, stride;
     JSAMPARRAY buffer;
     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);
 
     splash->width = cinfo->output_width;