]>
Commit | Line | Data |
---|---|---|
a1be8023 | 1 | --- ksplash/ksplashx/qpngio.cpp.orig 2010-01-29 16:27:02.398253472 +0100 |
df6b1c93 | 2 | +++ ksplash/ksplashx/qpngio.cpp 2010-01-29 16:39:33.557014806 +0100 |
a1be8023 | 3 | @@ -151,7 +151,7 @@ |
4 | image.setColor( i, qRgba(c,c,c,0xff) ); | |
5 | } | |
6 | if ( png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ) { | |
7 | - const int g = info_ptr->trans_values.gray; | |
8 | + const int g = info_ptr->trans_color.gray; | |
9 | if (g < ncols) { | |
10 | image.setAlphaBuffer(true); | |
11 | image.setColor(g, image.color(g) & RGB_MASK); | |
df6b1c93 | 12 | @@ -179,7 +179,7 @@ |
13 | info_ptr->palette[i].red, | |
14 | info_ptr->palette[i].green, | |
15 | info_ptr->palette[i].blue, | |
16 | - info_ptr->trans[i] | |
17 | + info_ptr->trans_alpha[i] | |
18 | ) | |
19 | ); | |
20 | i++; |