Mageia Bugzilla – Attachment 1387 Details for
Bug 4175
new SDL_image corrupts png of PseudoClass type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
SDL_image-1.2.11-png_channels.patch
SDL_image-1.2.11-png_channels.patch (text/plain), 597 bytes, created by
AL13N
on 2012-01-18 23:17:51 CET
(
hide
)
Description:
SDL_image-1.2.11-png_channels.patch
Filename:
MIME Type:
Creator:
AL13N
Created:
2012-01-18 23:17:51 CET
Size:
597 bytes
patch
obsolete
>--- SDL_image-1.2.11_orig/IMG_png.c 2012-01-15 22:28:46.000000000 +0100 >+++ SDL_image-1.2.11/IMG_png.c 2012-01-18 22:56:54.479573491 +0100 >@@ -454,8 +454,8 @@ > Rmask = Gmask = Bmask = Amask = 0 ; > num_channels = lib.png_get_channels(png_ptr, info_ptr); > /* Some .png files are monochrome, with as much as 1 channel and 1 bit per pixel */ >- if( num_channels != 3 && num_channels != 4 ) >- num_channels = 3; >+// if( num_channels != 3 && num_channels != 4 ) >+// num_channels = 3; > if ( color_type != PNG_COLOR_TYPE_PALETTE ) { > if ( SDL_BYTEORDER == SDL_LIL_ENDIAN ) { > Rmask = 0x000000FF;
--- SDL_image-1.2.11_orig/IMG_png.c 2012-01-15 22:28:46.000000000 +0100 +++ SDL_image-1.2.11/IMG_png.c 2012-01-18 22:56:54.479573491 +0100 @@ -454,8 +454,8 @@ Rmask = Gmask = Bmask = Amask = 0 ; num_channels = lib.png_get_channels(png_ptr, info_ptr); /* Some .png files are monochrome, with as much as 1 channel and 1 bit per pixel */ - if( num_channels != 3 && num_channels != 4 ) - num_channels = 3; +// if( num_channels != 3 && num_channels != 4 ) +// num_channels = 3; if ( color_type != PNG_COLOR_TYPE_PALETTE ) { if ( SDL_BYTEORDER == SDL_LIL_ENDIAN ) { Rmask = 0x000000FF;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 4175
: 1387