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
1 changed files with 6 additions and 0 deletions

View File

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