mirror of
https://github.com/mpv-player/mpv
synced 2024-10-30 04:46:41 +01:00
cocoa: fix drawing on macOS 10.14
This commit is contained in:
parent
e5c4164088
commit
b222980394
@ -46,6 +46,12 @@
|
||||
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
|
||||
// as well without having to do any coordinate conversion of mouse positions.
|
||||
- (BOOL)isFlipped { return YES; }
|
||||
|
Loading…
Reference in New Issue
Block a user