lcl: create mask when maskbitsperpixel <> 0 and not vice versa (#0011513)

git-svn-id: trunk@15524 -
This commit is contained in:
paul 2008-06-23 05:18:57 +00:00
parent 0961978bf0
commit 27690f4681

View File

@ -145,7 +145,7 @@ begin
end;
try
if not RawImage_CreateBitmaps(ImagePtr^, ImgHandle, ImgMaskHandle, DevDesc.MaskBitsPerPixel <> 0)
if not RawImage_CreateBitmaps(ImagePtr^, ImgHandle, ImgMaskHandle, DevDesc.MaskBitsPerPixel = 0)
then begin
DebugLn('TRasterImage.BitmapHandleNeeded: Unable to create handles, using default');
// create a default handle