mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 03:20:38 +02:00
LCL-GTK3: Prevent a crash when starting the IDE build for GTK3.
git-svn-id: trunk@62259 -
This commit is contained in:
parent
8d9ae58846
commit
b5c25f2a0f
@ -230,7 +230,8 @@ begin
|
||||
ImageFormat := CAIRO_FORMAT_ARGB32;
|
||||
end;
|
||||
ARowStride := GetBytesPerLine(Desc.Width, Desc.BitsPerPixel, rileDWordBoundary);
|
||||
ABitmap := HBitmap(TGtk3Image.Create(NewData, Desc.Width, Desc.Height, ARowStride, ImageFormat, True));
|
||||
ABitmap := HBitmap(TGtk3Image.Create(NewData, Desc.Width, Desc.Height, ARowStride, ImageFormat,
|
||||
not ASkipMask)); // Using ASkipMask for DataOwner param prevents a crash later.
|
||||
Result := ABitmap <> 0;
|
||||
|
||||
if ASkipMask then Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user