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:
paul 2008-08-18 12:41:29 +00:00
parent 5c24bd8b02
commit bb5ded10b3

View File

@ -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');