Skip to content

Commit

Permalink
cocoa: fix drawing on macOS 10.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Akemi authored and jeeb committed Nov 13, 2018
1 parent e5c4164 commit b222980
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions video/out/cocoa/events_view.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ - (id)initWithFrame:(NSRect)frame
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; }
Expand Down

0 comments on commit b222980

Please sign in to comment.