mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 06:40:36 +02:00
gtk: return RawImage.Description.MaskBitsPerPixel = 0 if there is no mask present for RawImage_FromBitmap (fixes visual glitches in #0011902)
git-svn-id: trunk@16116 -
This commit is contained in:
parent
5c24bd8b02
commit
bb5ded10b3
@ -670,7 +670,9 @@ begin
|
||||
Bitmap := GdiMask^.GDIBitmapObject;
|
||||
RawImage_AddMask(ARawImage, Bitmap, ARect);
|
||||
//DbgDumpBitmap(Bitmap, 'RawImage_FromBitmap - mask');
|
||||
end;
|
||||
end
|
||||
else
|
||||
ARawImage.Description.MaskBitsPerPixel := 0;
|
||||
|
||||
if not Result
|
||||
then DebugLn('WARNING: [TGtkWidgetSet.RawImage_FromBitmap] unable to GetRawImageFromGdkWindow Image');
|
||||
|
Loading…
Reference in New Issue
Block a user