mirror of https://github.com/adamdruppe/arsd.git
png bug fix?
This commit is contained in:
parent
ed23f6a91e
commit
9942a07f70
1
png.d
1
png.d
|
@ -1809,6 +1809,7 @@ immutable(ubyte)[] unfilter(ubyte filterType, in ubyte[] data, in ubyte[] previo
|
||||||
return assumeUnique(arr);
|
return assumeUnique(arr);
|
||||||
case 3:
|
case 3:
|
||||||
auto arr = data.dup;
|
auto arr = data.dup;
|
||||||
|
if(previousLine.length)
|
||||||
foreach(i; 0 .. arr.length) {
|
foreach(i; 0 .. arr.length) {
|
||||||
auto prev = i < bpp ? 0 : arr[i - bpp];
|
auto prev = i < bpp ? 0 : arr[i - bpp];
|
||||||
arr[i] += cast(ubyte)
|
arr[i] += cast(ubyte)
|
||||||
|
|
Loading…
Reference in New Issue