From b2229803946e81b11a75110d70b38e05d666f051 Mon Sep 17 00:00:00 2001 From: Akemi Date: Sun, 4 Nov 2018 12:10:41 +0100 Subject: cocoa: fix drawing on macOS 10.14 --- video/out/cocoa/events_view.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m index 4a839b727e..2cfe3f2fda 100644 --- a/video/out/cocoa/events_view.m +++ b/video/out/cocoa/events_view.m @@ -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; } -- cgit v1.2.3