mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:19:36 +02:00
Cocoa: Fix not working framerect call
git-svn-id: trunk@43958 -
This commit is contained in:
parent
7d53b0d01b
commit
7b11f22871
@ -1769,13 +1769,7 @@ end;
|
||||
|
||||
procedure TCocoaContext.FrameRect(const ARect: TRect; const ABrush: TCocoaBrush);
|
||||
begin
|
||||
if ABrush <> Brush then
|
||||
ABrush.Apply(Self);
|
||||
if not ctx.currentContextDrawingToScreen then
|
||||
ctx.setCurrentContext(ctx);
|
||||
NSFrameRect(RectToNSRect(ARect));
|
||||
if ABrush <> Brush then
|
||||
Brush.Apply(Self);
|
||||
Rectangle(Arect.Left,ARect.Top,Arect.Right,ARect.Bottom, False, ABrush);
|
||||
end;
|
||||
|
||||
procedure TCocoaContext.SetCGFillping(Ctx: CGContextRef; Width, Height: CGFloat);
|
||||
|
Loading…
Reference in New Issue
Block a user