LazMapViewer: Fix bitmap format error in Linux.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6836 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2019-03-25 17:30:10 +00:00
parent 0c3c974b0e
commit e3d62278c5

View File

@ -788,7 +788,8 @@ var
rawImg: TRawImage;
begin
rawImg.Init;
rawImg.Description.Init_BPP24_B8G8R8_BIO_TTB(AWidth, AHeight);
//rawImg.Description.Init_BPP24_B8G8R8_BIO_TTB(AWidth, AHeight);
rawImg.Description.Init_BPP32_B8G8R8_BIO_TTB(AWidth, AHeight);
rawImg.CreateData(True);
ABuffer := TLazIntfImage.Create(rawImg, true);
ACanvas := TFPImageCanvas.Create(ABuffer);