X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Flib%2Fvampimg%2FImagingTarga.pas;h=921f0097fac37bb5ce7e6a15670750c0c9d50002;hp=66af5f2c8b58b6cfc477f89ab67fbe5ad435a5ee;hb=976db3db1ae1d95076480d29b46864453804449f;hpb=645d02199259b5e43745df45f027c46e09293dbe diff --git a/src/lib/vampimg/ImagingTarga.pas b/src/lib/vampimg/ImagingTarga.pas index 66af5f2..921f009 100644 --- a/src/lib/vampimg/ImagingTarga.pas +++ b/src/lib/vampimg/ImagingTarga.pas @@ -197,6 +197,12 @@ begin 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