oleaut32: allow PNG_COLOR_TYPE_RGB_ALPHA

Evan Stade estade at gmail.com
Fri Aug 3 19:30:11 CDT 2007


Hi,

the alpha channel is ignored, but this at least allows the image to
load somewhat

 dlls/oleaut32/olepicture.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index ca46d01..b12a85b 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -1443,7 +1443,8 @@ #ifdef SONAME_LIBPNG
     ppng_read_info(png_ptr, info_ptr);
 
     if(!(png_ptr->color_type == PNG_COLOR_TYPE_RGB ||
-         png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)){
+         png_ptr->color_type == PNG_COLOR_TYPE_PALETTE ||
+         png_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)){
         FIXME("Unsupported .PNG type: %d\n", png_ptr->color_type);
         ret = E_FAIL;
         goto pngend;
-- 
1.4.1


More information about the wine-patches mailing list