mirror of https://github.com/mpv-player/mpv
cocoa: fix drawing on macOS 10.14
This commit is contained in:
parent
e5c4164088
commit
b222980394
|
@ -46,6 +46,12 @@
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)drawRect:(NSRect)rect
|
||||||
|
{
|
||||||
|
[[NSColor blackColor] setFill];
|
||||||
|
NSRectFill(rect);
|
||||||
|
}
|
||||||
|
|
||||||
// mpv uses flipped coordinates, because X11 uses those. So let's just use them
|
// mpv uses flipped coordinates, because X11 uses those. So let's just use them
|
||||||
// as well without having to do any coordinate conversion of mouse positions.
|
// as well without having to do any coordinate conversion of mouse positions.
|
||||||
- (BOOL)isFlipped { return YES; }
|
- (BOOL)isFlipped { return YES; }
|
||||||
|
|
Loading…
Reference in New Issue