Skip to content

Commit

Permalink
Quench PNG warning about interlacing support
Browse files Browse the repository at this point in the history
  • Loading branch information
njroussel committed May 28, 2024
1 parent deebe4c commit 3160a31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/bitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,8 @@ void Bitmap::read_png(Stream *stream) {
png_set_swap(png_ptr); // Swap the byte order on little endian machines
#endif

png_set_interlace_handling(png_ptr);

// Update the information based on the transformations
png_read_update_info(png_ptr, info_ptr);
png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth,
Expand Down

0 comments on commit 3160a31

Please sign in to comment.