mirror of
https://github.com/fltk/fltk.git
synced 2026-06-08 01:46:00 +08:00
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:
@@ -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 ++;
|
||||
|
||||
Reference in New Issue
Block a user