mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 14:59:15 +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);
|
procedure TCocoaContext.FrameRect(const ARect: TRect; const ABrush: TCocoaBrush);
|
||||||
begin
|
begin
|
||||||
if ABrush <> Brush then
|
Rectangle(Arect.Left,ARect.Top,Arect.Right,ARect.Bottom, False, ABrush);
|
||||||
ABrush.Apply(Self);
|
|
||||||
if not ctx.currentContextDrawingToScreen then
|
|
||||||
ctx.setCurrentContext(ctx);
|
|
||||||
NSFrameRect(RectToNSRect(ARect));
|
|
||||||
if ABrush <> Brush then
|
|
||||||
Brush.Apply(Self);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCocoaContext.SetCGFillping(Ctx: CGContextRef; Width, Height: CGFloat);
|
procedure TCocoaContext.SetCGFillping(Ctx: CGContextRef; Width, Height: CGFloat);
|
||||||
|
Loading…
Reference in New Issue
Block a user