mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 21:39:21 +02:00
fix adding image to TImageList in case Image.Mask = nil (problem with missed component glyphs under linux must be solved) by Marc with my help
git-svn-id: trunk@12797 -
This commit is contained in:
parent
442741d188
commit
6223cf758e
@ -991,7 +991,8 @@ var
|
||||
begin
|
||||
SrcHasAlpha := AImage.Description.AlphaPrec > 0;
|
||||
KeepAlpha := SrcHasAlpha;
|
||||
if not SrcHasAlpha and (Desc.BitsPerPixel = 32) and (Desc.Depth = 24)
|
||||
if not SrcHasAlpha and (Desc.BitsPerPixel = 32) and (Desc.Depth = 24) and
|
||||
(AImage.Mask <> nil) and (Desc.MaskBitsPerPixel > 0)
|
||||
then begin
|
||||
// Try to squeeze Aplha channel in some unused bits
|
||||
if (Desc.RedShift >= 8)
|
||||
|
Loading…
Reference in New Issue
Block a user