Skip to content

Commit

Permalink
fixes for compatibility (release)
Browse files Browse the repository at this point in the history
  • Loading branch information
i3roly committed Aug 8, 2024
1 parent 4d69d60 commit 97056a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion widget/cocoa/nsCocoaUtils.mm
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ static bool ComputeIsEntirelyBlack(const DataSourceSurface::MappedSurface& aMap,
[NSGraphicsContext setCurrentContext:context];

// Get the Quartz context and draw.
CGContextRef imageContext = (CGContextRef)[[NSGraphicsContext currentContext] CGContext];
CGContextRef imageContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
::CGContextDrawImage(imageContext, *(CGRect*)&imageRect, aInputImage);

[NSGraphicsContext restoreGraphicsState];
Expand Down
4 changes: 2 additions & 2 deletions widget/cocoa/nsNativeThemeCocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ - (bool)isHorizontal {
}

- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView*)controlView {
CGContext* cgContext = [[NSGraphicsContext currentContext] CGContext];
CGContext* cgContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];

HIThemeTrackDrawInfo tdi;

Expand Down Expand Up @@ -848,7 +848,7 @@ static void RenderWithCoreUI(CGRect aRect, CGContextRef cgContext,
// CUIDraw with a CoreUI renderer that will give us the correct 10.10
// style. Calling CUIDraw directly with [NSWindow coreUIRenderer] still
// renders 10.9-style widgets on 10.10.
[appearance _drawInRect:aRect context:cgContext options:aOptions];
[appearance _drawInRect:aRect context:(CGContextRef)cgContext options:aOptions];
} else {
// 10.9 and below
CUIRendererRef renderer =
Expand Down

0 comments on commit 97056a8

Please sign in to comment.