mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Add TGA v2.0 footer in TGA type file on export
This commit is contained in:
parent
4542ed588e
commit
0203b65908
@ -463,6 +463,9 @@ bool TgaFormat::onSave(FileOp* fop)
|
||||
break;
|
||||
}
|
||||
|
||||
const char* tga2_footer = "\0\0\0\0\0\0\0\0TRUEVISION-XFILE.\0";
|
||||
fwrite(tga2_footer, 1, 26, f);
|
||||
|
||||
if (ferror(f)) {
|
||||
fop->setError("Error writing file.\n");
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user