diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-17 09:38:53 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-01-17 09:38:53 +0100 |
| commit | 39eba133de302f393cc2dabfa5c1d933239cd1ce (patch) | |
| tree | 0aacb7bfd9d2b30350f8a601515f7f0126a797ad /png/pngread.c | |
| parent | b804c4b72c96630d57166d4d7b94fb104122e95e (diff) | |
Update bundled libpng to version 1.6.39 (20 nov 2022)
Diffstat (limited to 'png/pngread.c')
| -rw-r--r-- | png/pngread.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/png/pngread.c b/png/pngread.c index bf3c4fb89..96996ced5 100644 --- a/png/pngread.c +++ b/png/pngread.c @@ -3452,7 +3452,6 @@ png_image_read_background(png_voidp argument) for (pass = 0; pass < passes; ++pass) { - png_bytep row = png_voidcast(png_bytep, display->first_row); unsigned int startx, stepx, stepy; png_uint_32 y; @@ -3557,9 +3556,6 @@ png_image_read_background(png_voidp argument) inrow += 2; /* gray and alpha channel */ } - - row += display->row_bytes; - (void)row; // FLTK: silence warning: FIXME - remove variable 'row'? } } } @@ -3766,13 +3762,13 @@ png_image_read_direct(png_voidp argument) mode = PNG_ALPHA_PNG; output_gamma = PNG_DEFAULT_sRGB; } - + if ((change & PNG_FORMAT_FLAG_ASSOCIATED_ALPHA) != 0) { mode = PNG_ALPHA_OPTIMIZED; change &= ~PNG_FORMAT_FLAG_ASSOCIATED_ALPHA; } - + /* If 'do_local_background' is set check for the presence of gamma * correction; this is part of the work-round for the libpng bug * described above. |
