mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Fix shadow-ivar warning on macOS
This commit is contained in:
parent
ca896dbce7
commit
90c49c7af1
@ -207,7 +207,7 @@ void EnableOSXDockIcon(bool enable)
|
||||
|
||||
@interface DockView : NSView {
|
||||
@private
|
||||
QIcon icon;
|
||||
QIcon _icon;
|
||||
}
|
||||
@end
|
||||
|
||||
@ -215,7 +215,7 @@ void EnableOSXDockIcon(bool enable)
|
||||
- (id)initWithIcon:(QIcon)icon
|
||||
{
|
||||
self = [super init];
|
||||
self->icon = icon;
|
||||
_icon = icon;
|
||||
return self;
|
||||
}
|
||||
- (void)drawRect:(NSRect)dirtyRect
|
||||
@ -230,7 +230,7 @@ void EnableOSXDockIcon(bool enable)
|
||||
/* Draw small icon on top */
|
||||
float iconSize = 0.45;
|
||||
CGImageRef image =
|
||||
icon.pixmap(size.width, size.height).toImage().toCGImage();
|
||||
_icon.pixmap(size.width, size.height).toImage().toCGImage();
|
||||
CGContextRef context = [[NSGraphicsContext currentContext] CGContext];
|
||||
CGContextDrawImage(context,
|
||||
CGRectMake(size.width * (1 - iconSize), 0,
|
||||
|
Loading…
Reference in New Issue
Block a user