lazmapviewer: Fix image format error on Linux (introduced by r6884).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6886 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2019-04-29 20:18:18 +00:00
parent 7cde99951d
commit 7ea250941e

View File

@ -792,10 +792,10 @@ var
rawImg: TRawImage;
begin
rawImg.Init;
{$IFDEF WINDOWS}
rawImg.Description.Init_BPP32_B8G8R8_BIO_TTB(AWidth, AHeight);
{$ELSE}
{$IFDEF DARWIN}
rawImg.Description.Init_BPP32_A8R8G8B8_BIO_TTB(AWidth, AHeight);
{$ELSE}
rawImg.Description.Init_BPP32_B8G8R8_BIO_TTB(AWidth, AHeight);
{$ENDIF}
rawImg.CreateData(True);
ABuffer := TLazIntfImage.Create(rawImg, true);