mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 13:38:00 +02:00
Cocoa: fix the issues related to Canvas Clipping, especially on version < macOS 11
This commit is contained in:
parent
d0d80cf295
commit
fdbb1e6aa3
@ -1436,10 +1436,12 @@ begin
|
||||
FBkBrush.Free;
|
||||
|
||||
if Assigned(ctx) then begin
|
||||
if Assigned(CGContext()) and Flipped then
|
||||
if Clipped then
|
||||
CGContextRestoreGState(CGContext());
|
||||
if Flipped then
|
||||
CGContextRestoreGState(CGContext());
|
||||
ctx.release;
|
||||
end;
|
||||
end;
|
||||
if Assigned(boxview) then boxview.release;
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user