Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Fix El Capitan errors and crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
kbhomes committed Sep 14, 2015
1 parent 864956a commit a858abd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion radiant-player-mac/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ - (void) evaluateJavaScriptFile:(NSString *)name
@"if (document.querySelector('#rp-script-%1$@') == null) {"
" var js = document.createElement('script');"
" js.id = 'rp-script-%1$@';"
" js.src = 'http://radiant-player-mac/js/%1$@.js';"
" js.src = 'https://radiant-player-mac/js/%1$@.js';"
" document.head.appendChild(js);"
"}";
NSString *insert = [NSString stringWithFormat:template, name];
Expand Down
1 change: 0 additions & 1 deletion radiant-player-mac/Popup/PopupView.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
@class PopupViewDelegate;

@interface PopupView : VisualEffectView {
NSImage *_backgroundImage;
// NSView *_backgroundView;
CGFloat _hoverAlphaMultiplier;
}
Expand Down
14 changes: 7 additions & 7 deletions radiant-player-mac/Popup/PopupView.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ @implementation PopupView

@synthesize isLargePlayer;
@synthesize trackingArea;
@synthesize backgroundImage = _backgroundImage;
@synthesize hoverAlphaMultiplier = _hoverAlphaMultiplier;
@synthesize backgroundImage;
@synthesize hoverAlphaMultiplier;

@synthesize arrowX;

Expand Down Expand Up @@ -77,13 +77,13 @@ - (void)drawRect:(NSRect)dirtyRect
// Draw the background album art image if possible.
if (isLargePlayer)
{
if (_backgroundImage != nil)
if (backgroundImage != nil)
{
[path addClip];
[_backgroundImage drawInRect:[self bounds]
fromRect:NSMakeRect(0, 0, _backgroundImage.size.width, _backgroundImage.size.height)
operation:NSCompositeSourceOver
fraction:1.0];
[backgroundImage drawInRect:[self bounds]
fromRect:NSMakeRect(0, 0, backgroundImage.size.width, backgroundImage.size.height)
operation:NSCompositeSourceOver
fraction:1.0];
}

[hoverGradient drawInBezierPath:path angle:-90.0];
Expand Down

0 comments on commit a858abd

Please sign in to comment.