diff options
author | Glenn Randers-Pehrson <glennrp@shaggy.simplesystems.org> | 2010-12-28 21:45:08 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp@shaggy.simplesystems.org> | 2010-12-28 21:45:08 -0600 |
commit | 9a8c568e3c6231925a009501561d0489896472fc (patch) | |
tree | 6a4f133e9afe93861e32df8f90e47168f7e2438d /pngrtran.c | |
parent | fb05477e119f8dcdc1edc179e6d5966eeb77c94b (diff) | |
download | libpng-9a8c568e3c6231925a009501561d0489896472fc.tar.gz |
[master] Fixed bug in background transformation handling in pngrtran.c
(it was looking for the flag in png_ptr->transformations instead of in
png_ptr->flags).
Diffstat (limited to 'pngrtran.c')
-rw-r--r-- | pngrtran.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pngrtran.c b/pngrtran.c index ebfaad16e..2c3d4a999 100644 --- a/pngrtran.c +++ b/pngrtran.c @@ -1,7 +1,7 @@ /* pngrtran.c - transforms the data in a row for PNG readers * - * Last changed in libpng 1.4.5 [December 27, 2010] + * Last changed in libpng 1.4.5 [December 29, 2010] * Copyright (c) 1998-2010 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) @@ -1008,7 +1008,7 @@ png_init_read_transformations(png_structp png_ptr) */ png_ptr->transformations &= ~PNG_BACKGROUND; png_ptr->transformations &= ~PNG_GAMMA; - png_ptr->transformations |= PNG_STRIP_ALPHA; + png_ptr->flags |= PNG_FLAG_STRIP_ALPHA; } /* if (png_ptr->background_gamma_type!=PNG_BACKGROUND_GAMMA_UNKNOWN) */ else @@ -1131,7 +1131,7 @@ png_init_read_transformations(png_structp png_ptr) /* Handled alpha, still need to strip the channel. */ png_ptr->transformations &= ~PNG_BACKGROUND; - png_ptr->transformations |= PNG_STRIP_ALPHA; + png_ptr->flags |= PNG_FLAG_STRIP_ALPHA; } #endif /* PNG_READ_BACKGROUND_SUPPORTED */ |