diff options
author | Akemi <der.richter@gmx.de> | 2018-11-04 12:10:41 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-11-13 21:14:29 +0200 |
commit | b2229803946e81b11a75110d70b38e05d666f051 (patch) | |
tree | 8a1e0e8743bbcf074ee4686932ce9f10a9fe5b12 /video | |
parent | e5c41640885bafb11513f1cada7a462ee79b0aee (diff) |
cocoa: fix drawing on macOS 10.14
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa/events_view.m | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |