mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 09:13:53 +01:00
convert_png_to_argb8: Set color type & bit depth
This commit is contained in:
parent
8801a3d159
commit
44896f1d51
@ -375,6 +375,8 @@ end
|
|||||||
png.data[index] = a * 0x1000000 + r * 0x10000 + g * 0x100 + b
|
png.data[index] = a * 0x1000000 + r * 0x10000 + g * 0x100 + b
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
png.color_type = colortypes[6]
|
||||||
|
png.bit_depth = 8
|
||||||
png.alpha_data = nil
|
png.alpha_data = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user