mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 07:19:18 +02:00
Cocoa context has to be set first
git-svn-id: trunk@43593 -
This commit is contained in:
parent
dcc0a1c2d1
commit
012589fe57
@ -1806,11 +1806,12 @@ begin
|
||||
CGContextScaleCTM(CGContext, 1, -1);
|
||||
CGContextTranslateCTM(CGContext, 0, -SrcHeight);
|
||||
CGContextClipToMask(CGContext, ImgRect, MskImage );
|
||||
CGImageRelease(MskImage);
|
||||
|
||||
ctx.setCurrentContext(ctx);
|
||||
Result := bmp.ImageRep.drawInRect_fromRect_operation_fraction_respectFlipped_hints(
|
||||
GetNSRect(X, -Y, Width, Height), GetNSRect(XSrc, YSrc, SrcWidth, SrcHeight), NSCompositeSourceOver, 1.0, True, nil );
|
||||
|
||||
CGImageRelease(MskImage);
|
||||
CGContextRestoreGState(CGContext);
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user