From e3d62278c54c9c14dd8ce8e03178f09cb1191c87 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Mon, 25 Mar 2019 17:30:10 +0000 Subject: [PATCH] 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 --- components/lazmapviewer/source/mvmapviewer.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lazmapviewer/source/mvmapviewer.pas b/components/lazmapviewer/source/mvmapviewer.pas index d1bc7acff..0220cc592 100644 --- a/components/lazmapviewer/source/mvmapviewer.pas +++ b/components/lazmapviewer/source/mvmapviewer.pas @@ -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);