Pārlūkot izejas kodu

* Support for image comment in TARGA

michael 21 gadi atpakaļ
vecāks
revīzija
9de3e6b588
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      fcl/image/fpreadtga.pp

+ 2 - 0
fcl/image/fpreadtga.pp

@@ -156,6 +156,8 @@ begin
     begin
     SetLength(Identification,Header.IDLen);
     Stream.Read(Identification[1],Header.Idlen);
+    If Length(Identification)<>0 then
+      Img.Extra[KeyIdentification]:=Identification;
     end;
   If Toword(Header.MapLength)>0 then
     ReadPalette(Stream);