0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

cocoa: remove pointless drawRect

Apparently it causes deadlocks, and at the moment it does nothing.

Fixes #778
This commit is contained in:
Stefano Pigozzi 2014-10-04 17:29:10 +02:00
parent d980c30851
commit 0541151b40

View File

@ -227,13 +227,6 @@
[self.adapter putKey:(mpkey | state) withModifiers:[event modifierFlags]];
}
- (void)drawRect:(NSRect)rect
{
[self.adapter lock];
[self.adapter setNeedsResize];
[self.adapter unlock];
}
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
{
NSPasteboard *pboard = [sender draggingPasteboard];