blob: efc4ca46b10b8453c04acd88bddeeab30ff0dbe8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- source/base/image/png.cpp
+++ source/base/image/png.cpp
@@ -433,7 +433,7 @@
entry.alpha = 1.0f ;
if (has_alpha)
if (index < r_info_ptr->num_trans)
- entry.alpha = (float) (r_info_ptr->trans[index]) / 255.0;
+ entry.alpha = (float) (r_info_ptr->trans_alpha[index]) / 255.0;
colormap.push_back (entry);
}
@@ -459,7 +459,7 @@
entry.alpha = 1.0f ;
if (r_info_ptr->valid & PNG_INFO_tRNS)
if (index < r_info_ptr->num_trans)
- entry.alpha = (float) (r_info_ptr->trans[index]) / 255.0;
+ entry.alpha = (float) (r_info_ptr->trans_alpha[index]) / 255.0;
colormap.push_back (entry);
}
|