summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2018-11-04 12:10:41 +0100
committerJan Ekström <jeebjp@gmail.com>2018-11-13 21:14:29 +0200
commitb2229803946e81b11a75110d70b38e05d666f051 (patch)
tree8a1e0e8743bbcf074ee4686932ce9f10a9fe5b12 /video
parente5c41640885bafb11513f1cada7a462ee79b0aee (diff)
downloadmpv-b2229803946e81b11a75110d70b38e05d666f051.tar.bz2
mpv-b2229803946e81b11a75110d70b38e05d666f051.tar.xz
cocoa: fix drawing on macOS 10.14
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa/events_view.m6
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; }