Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 346436 Details for
Bug 465828
net-im/coccinella-0.96.20 does not work with media-libs/libpng-1.6.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Reorder transformation w.r.t. png_read_update_info()
tkimg-1.4-png-1.6.patch (text/plain), 1.02 KB, created by
Johan Hattne
on 2013-04-24 04:12:31 UTC
(
hide
)
Description:
Reorder transformation w.r.t. png_read_update_info()
Filename:
MIME Type:
Creator:
Johan Hattne
Created:
2013-04-24 04:12:31 UTC
Size:
1.02 KB
patch
obsolete
>--- png/png.c.orig 2010-06-17 06:40:24.000000000 -0700 >+++ png/png.c 2013-04-23 20:57:32.000000000 -0700 >@@ -332,6 +332,16 @@ > png_set_expand(png_ptr); > } > >+ if (png_get_sRGB && png_get_sRGB(png_ptr, info_ptr, &intent)) { >+ png_set_sRGB(png_ptr, info_ptr, intent); >+ } else if (png_get_gAMA) { >+ double gamma; >+ if (!png_get_gAMA(png_ptr, info_ptr, &gamma)) { >+ gamma = 0.45455; >+ } >+ png_set_gamma(png_ptr, 1.0, gamma); >+ } >+ > png_read_update_info(png_ptr,info_ptr); > block.pixelSize = png_get_channels(png_ptr, info_ptr); > block.pitch = png_get_rowbytes(png_ptr, info_ptr); >@@ -353,16 +363,6 @@ > block.offset[3] = 0; > } > >- if (png_get_sRGB && png_get_sRGB(png_ptr, info_ptr, &intent)) { >- png_set_sRGB(png_ptr, info_ptr, intent); >- } else if (png_get_gAMA) { >- double gamma; >- if (!png_get_gAMA(png_ptr, info_ptr, &gamma)) { >- gamma = 0.45455; >- } >- png_set_gamma(png_ptr, 1.0, gamma); >- } >- > png_data= (char **) ckalloc(sizeof(char *) * info_height + > info_height * block.pitch); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 465828
: 346436