You've already forked lazarus-ccr
* Correction for r2871: less ugly, more efficient code.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2873 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -298,7 +298,7 @@ begin
|
|||||||
{$IFDEF FPC}
|
{$IFDEF FPC}
|
||||||
{$IFDEF ENDIAN_LITTLE}
|
{$IFDEF ENDIAN_LITTLE}
|
||||||
result:=(RGB shl 8); //tags $00 at end for the A byte
|
result:=(RGB shl 8); //tags $00 at end for the A byte
|
||||||
result:=NtoBE(LEtoN(result)); //flip byte order
|
result:=SwapEndian(result); //flip byte order
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
//Big endian
|
//Big endian
|
||||||
result:=RGB; //leave value as is //todo: verify if this turns out ok
|
result:=RGB; //leave value as is //todo: verify if this turns out ok
|
||||||
|
Reference in New Issue
Block a user