mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 02:39:37 +02:00
Cocoa: Fix transparency bug on TImage
git-svn-id: trunk@43748 -
This commit is contained in:
parent
bd7db234e4
commit
b7b6c05eac
@ -1806,7 +1806,7 @@ begin
|
||||
if (Msk <> nil) and (Msk.Image <> nil) then
|
||||
begin
|
||||
MskImage := Msk.CreateMaskImage(Bounds(XMsk, YMsk, SrcWidth, SrcHeight));
|
||||
ImgRect := CGRectMake(0, 0, SrcWidth, SrcHeight);
|
||||
ImgRect := CGRectMake(x, -y, SrcWidth, SrcHeight);
|
||||
CGContextSaveGState(CGContext);
|
||||
CGContextScaleCTM(CGContext, 1, -1);
|
||||
CGContextTranslateCTM(CGContext, 0, -SrcHeight);
|
||||
|
Loading…
Reference in New Issue
Block a user