1
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:
Akemi 2018-11-04 12:10:41 +01:00 committed by Jan Ekström
parent e5c4164088
commit b222980394

View File

@ -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; }