[master] Expand TAB characters in pngrtran.c
This commit is contained in:
parent
ac13f5e6f9
commit
338f465019
1
ANNOUNCE
1
ANNOUNCE
@ -46,6 +46,7 @@ version 1.2.41beta01 [September 25, 2009]
|
|||||||
Moved redundant IHDR checking into new png_check_IHDR() in png.c
|
Moved redundant IHDR checking into new png_check_IHDR() in png.c
|
||||||
and report all errors found in the IHDR data.
|
and report all errors found in the IHDR data.
|
||||||
Eliminated useless call to png_check_cHRM() from pngset.c
|
Eliminated useless call to png_check_cHRM() from pngset.c
|
||||||
|
Expanded TAB characters in pngrtran.c
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
|
|
||||||
|
1
CHANGES
1
CHANGES
@ -2476,6 +2476,7 @@ version 1.2.41beta01 [September 25, 2009]
|
|||||||
Moved redundant IHDR checking into new png_check_IHDR() in png.c
|
Moved redundant IHDR checking into new png_check_IHDR() in png.c
|
||||||
and report all errors found in the IHDR data.
|
and report all errors found in the IHDR data.
|
||||||
Eliminated useless call to png_check_cHRM() from pngset.c
|
Eliminated useless call to png_check_cHRM() from pngset.c
|
||||||
|
Expanded TAB characters in pngrtran.c
|
||||||
|
|
||||||
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
|
||||||
(subscription required; visit
|
(subscription required; visit
|
||||||
|
20
pngrtran.c
20
pngrtran.c
@ -990,14 +990,14 @@ png_init_read_transformations(png_structp png_ptr)
|
|||||||
palette[i].blue = png_ptr->gamma_table[palette[i].blue];
|
palette[i].blue = png_ptr->gamma_table[palette[i].blue];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Prevent the transformations being done again, and make sure
|
/* Prevent the transformations being done again, and make sure
|
||||||
* that the now spurious alpha channel is stripped - the code
|
* that the now spurious alpha channel is stripped - the code
|
||||||
* has just reduced background composition and gamma correction
|
* has just reduced background composition and gamma correction
|
||||||
* to a simple alpha channel strip.
|
* to a simple alpha channel strip.
|
||||||
*/
|
*/
|
||||||
png_ptr->transformations &= ~PNG_BACKGROUND;
|
png_ptr->transformations &= ~PNG_BACKGROUND;
|
||||||
png_ptr->transformations &= ~PNG_GAMMA;
|
png_ptr->transformations &= ~PNG_GAMMA;
|
||||||
png_ptr->transformations |= PNG_STRIP_ALPHA;
|
png_ptr->transformations |= PNG_STRIP_ALPHA;
|
||||||
}
|
}
|
||||||
/* if (png_ptr->background_gamma_type!=PNG_BACKGROUND_GAMMA_UNKNOWN) */
|
/* if (png_ptr->background_gamma_type!=PNG_BACKGROUND_GAMMA_UNKNOWN) */
|
||||||
else
|
else
|
||||||
@ -1075,8 +1075,8 @@ png_init_read_transformations(png_structp png_ptr)
|
|||||||
palette[i].blue = png_ptr->gamma_table[palette[i].blue];
|
palette[i].blue = png_ptr->gamma_table[palette[i].blue];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Done the gamma correction. */
|
/* Done the gamma correction. */
|
||||||
png_ptr->transformations &= ~PNG_GAMMA;
|
png_ptr->transformations &= ~PNG_GAMMA;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if defined(PNG_READ_BACKGROUND_SUPPORTED)
|
#if defined(PNG_READ_BACKGROUND_SUPPORTED)
|
||||||
|
Reference in New Issue
Block a user