Skip to content

Commit

Permalink
fixed png reader bug :
Browse files Browse the repository at this point in the history
fill alpha channel with 0xff on expansion
  • Loading branch information
artemp committed Dec 1, 2006
1 parent f4786fe commit bbab2d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/png_reader.cpp
Expand Up @@ -189,8 +189,8 @@ namespace mapnik
png_set_gray_to_rgb(png_ptr);

// quick hack -- only work in >=libpng 1.2.7
png_set_add_alpha(png_ptr,1,1);

png_set_add_alpha(png_ptr,0xff,PNG_FILLER_AFTER); //rgba
double gamma;
if (png_get_gAMA(png_ptr, info_ptr, &gamma))
png_set_gamma(png_ptr, 2.2, gamma);
Expand Down

0 comments on commit bbab2d9

Please sign in to comment.