Skip to content

Commit

Permalink
Fix in RLE decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ZILtoid1991 committed Feb 9, 2019
1 parent fe66834 commit 71205f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dimage/tga.d
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public class TGA : Image, ImageMetadata{
}else{//literal block
dataBuffer[0] &= 0b0111_1111;
ubyte[] literalBlock;
literalBlock.length = dataBuffer[0];
literalBlock.length = dataBuffer[0] + 1;
file.rawRead(literalBlock);
result ~= dataBuffer[1] ~ literalBlock;
target--;
Expand Down
Binary file added test/png/output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 71205f4

Please sign in to comment.