summaryrefslogtreecommitdiff
path: root/java/openjdk6/files/icedtea/security/20130201/7173145.patch
blob: b7971618d3d7616c5085db0c081d7a233660e19e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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);