Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Education
xaralx
xaralx-libpng.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xaralx-libpng.patch of Package xaralx
Index: XaraLX-0.7r1785/wxOil/outptpng.cpp =================================================================== --- XaraLX-0.7r1785.orig/wxOil/outptpng.cpp +++ XaraLX-0.7r1785/wxOil/outptpng.cpp @@ -580,8 +580,8 @@ TRACEUSER( "Jonathan", _T("PNG write: X, TRACEUSER( "Jonathan", _T("PNG write: Bitdepth = %d\n"),BitsPerPixel); info_ptr->palette = NULL; info_ptr->num_palette = 0; - //info_ptr->trans_values = 0; // - transparent pixel for non-paletted images - info_ptr->trans = NULL; // - array of transparent entries for paletted images + //info_ptr->trans_color = 0; // - transparent pixel for non-paletted images + info_ptr->trans_alpha = NULL; // - array of transparent entries for paletted images info_ptr->num_trans = 0; // - number of transparent entries TRACEUSER( "Jonathan", _T("PNG write: TransColour = %d\n"),TransparentColour); if ( BitsPerPixel <= 8 ) @@ -634,12 +634,12 @@ TRACEUSER( "Jonathan", _T("PNG write: Tr // We will only create as many as we require, i.e. up to the transparent colour entry // rather a full palettes worth INT32 NumEntries = TransparentColour + 1; - info_ptr->trans = (png_byte *)CCMalloc(NumEntries * sizeof (png_byte)); - if (info_ptr->trans) + info_ptr->trans_alpha = (png_byte *)CCMalloc(NumEntries * sizeof (png_byte)); + if (info_ptr->trans_alpha) { // Set the number of transparent entries info_ptr->num_trans = NumEntries; - png_byte * pTransEntry = info_ptr->trans; + png_byte * pTransEntry = info_ptr->trans_alpha; info_ptr->valid |= PNG_INFO_tRNS; for (INT32 i = 0; i < TransparentColour; i++) { @@ -783,10 +783,10 @@ BOOL OutputPNG::CleanUpPngStructures() CCFree(info_ptr->palette); info_ptr->palette = NULL; } - if (info_ptr->trans) + if (info_ptr->trans_alpha) { - CCFree(info_ptr->trans); - info_ptr->trans = NULL; + CCFree(info_ptr->trans_alpha); + info_ptr->trans_alpha = NULL; } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor