Fixed STR 2449

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2010-11-18 20:02:27 +00:00
parent 1e77c19688
commit faed6e5ef7
+1 -1
View File
@@ -98,7 +98,7 @@ Fl_PNG_Image::Fl_PNG_Image(const char *png) // I - File to read
else
channels = 1;
int num_trans;
int num_trans = 0;
png_get_tRNS(pp, info, 0, &num_trans, 0);
if ((png_get_color_type(pp, info) & PNG_COLOR_MASK_ALPHA) || (num_trans != 0))
channels ++;