Add TGA v2.0 footer in TGA type file on export

This commit is contained in:
Rajiv Gupta 2018-12-08 18:26:06 +05:30 committed by David Capello
parent 4542ed588e
commit 0203b65908

View File

@ -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;