mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 18:59:10 +02:00
lcl: don't set maskbitsperpixel to 0 if no mask present for icon since windows needs mask (#0011585)
git-svn-id: trunk@15632 -
This commit is contained in:
parent
542dac1b27
commit
1ac3288628
@ -613,8 +613,8 @@ begin
|
||||
|
||||
// Add image
|
||||
IntfImage.GetRawImage(RawImage, True);
|
||||
if not IntfImage.HasMask
|
||||
then RawImage.Description.MaskBitsPerPixel := 0;
|
||||
// Paul: don't set MaskBitsPerPixel to zero => windows will fail with no mask
|
||||
// Even empty mask is better than no mask. But maybe CreateIconIndirect must be fixed on windows?
|
||||
with TSharedIcon(FSharedImage) do
|
||||
begin
|
||||
IconImage := GetImagesClass.Create(RawImage);
|
||||
|
Loading…
Reference in New Issue
Block a user