Ignore:
Timestamp:
Dec 22, 2016, 8:49:19 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Updated BGRABitmap package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/Packages/bgrabitmap/bgrareadtga.pas

    r472 r494  
    116116          for Col:=Img.Width-1 downto 0 do
    117117          begin
    118             PWord(PDest)^ := PWord(P)^;
    119             (PByte(PDest)+2)^ := (PByte(P)+2)^;
    120             (PByte(PDest)+3)^ := 255;
     118            PDest^ := BGRA((P+2)^,(P+1)^,P^);
    121119            inc(Pdest);
    122120            Inc(p,3);
     
    129127            inc(P);
    130128            Value:=value or (P[0] shl 8);
    131             With PDest^ do
    132                begin
    133                Red:=((value)shr 10) shl 3;
    134                Green:=((value)shr 5) shl 3;
    135                Blue:=((value)) shl 3;
    136                end;
     129            PDest^ := BGRA(((value)shr 10) shl 3,((value)shr 5) shl 3,((value)) shl 3);
    137130            Inc(PDest);
    138131            Inc(P);
Note: See TracChangeset for help on using the changeset viewer.