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/bgrareadlzp.pas

    r472 r494  
    296296                for x := w-1 downto 0 do
    297297                begin
    298                   {$IFDEF ENDIAN_LITTLE}
    299                   PDWord(PDest)^ := PCurBlue^ or (PCurGreen^ shl 8) or (PCurRed^ shl 16) or $ff000000;
    300                   {$ELSE}
    301                   PDWord(PDest)^ := (PCurBlue^ shl 24) or (PCurGreen^ shl 16) or (PCurRed^ shl 8) or $ff;
    302                   {$ENDIF}
     298                  PDest^ := BGRA(PCurRed^,PCurGreen^,PCurBlue^);
    303299                  inc(PCurBlue);
    304300                  inc(PCurGreen);
     
    317313              else
    318314              begin
    319                 {$IFDEF ENDIAN_LITTLE}
    320                 PDWord(PDest)^ := PCurBlue^ or (PCurGreen^ shl 8) or (PCurRed^ shl 16) or (PCurAlpha^ shl 24);
    321                 {$ELSE}
    322                 PDWord(PDest)^ := (PCurBlue^ shl 24) or (PCurGreen^ shl 16) or (PCurRed^ shl 8) or PCurAlpha^;
    323                 {$ENDIF}
     315                PDest^ := BGRA(PCurRed^,PCurGreen^,PCurBlue^,PCurAlpha^);
    324316                inc(PCurBlue);
    325317                inc(PCurGreen);
Note: See TracChangeset for help on using the changeset viewer.