I'm using this function for some time.
MaskBlt(Canvas.GetUpdatedHandle([csHandleValid]),10, 10, aBitmap.Width, aBitmap.Height,aBitmap.Canvas.GetUpdatedHandle([csHandleValid]),0, 0, UseMaskHandle, 0, 0);
I'm not sure if any recent update of fpc or lcl or a new libsomething is to blame but the function throws an exception now in
TGtk2WidgetSet.StretchCopyArea() at
if DstDevContext.Drawable = nil then RaiseDestDrawableNil;
This is followed by RaiseGDBException in lclproc which results in SIGFPE.
Invalid floating point operation.
In Datei 'lclproc.pas' in Zeile 815:
if (length(Msg) div (length(Msg) div 10000))=0 then ;
Lazarus 0.9.31 r35179 FPC 2.6.0 x86_64-linux-qt (LCLWidgetType gtk2)