HaxeFoundation / format

Various files formats support for Haxe
131 stars 59 forks source link

Fix extract32 for indexed pngs that have a bit depth less than 4 bits. #103

Closed codescapade closed 2 years ago

codescapade commented 2 years ago

When running extract32 on indexed pngs that have less than 4 bits depth the rline number is off, resulting in an "invalid filter" error. This is because the bit shifting takes too many numbers off. The rline is the same as the stride - 1 so I used that instead.