index 66af5f2c8b58b6cfc477f89ab67fbe5ad435a5ee..921f0097fac37bb5ce7e6a15670750c0c9d50002 100644 (file)
begin
// Read targa header
Read(Handle, @Hdr, SizeOf(Hdr));
+ Hdr.ColorMapOff := LEtoN(Hdr.ColorMapOff);
+ Hdr.ColorMapLength := LEtoN(Hdr.ColorMapLength);
+ Hdr.XOrg := LEtoN(Hdr.XOrg);
+ Hdr.YOrg := LEtoN(Hdr.YOrg);
+ Hdr.Width := LEtoN(Hdr.Width);
+ Hdr.Height := LEtoN(Hdr.Height);
// Skip image ID info
Seek(Handle, Hdr.IDLength, smFromCurrent);
// Determine image format