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

cocoa: only call resize for view changing frame

This commit is contained in:
Stefano Pigozzi 2014-10-04 17:39:43 +02:00
parent 0541151b40
commit e75ce6c869
2 changed files with 2 additions and 5 deletions

View File

@ -147,6 +147,7 @@
{
[super setFrameSize:size];
[self signalMousePosition];
[self.adapter setNeedsResize];
}
- (NSPoint)convertPointToPixels:(NSPoint)point

View File

@ -47,13 +47,9 @@
return self;
}
- (void)windowDidResize:(NSNotification *) notification
{
[self.adapter setNeedsResize];
}
- (void)windowDidChangeBackingProperties:(NSNotification *)notification
{
// XXX: we maybe only need expose for this
[self.adapter setNeedsResize];
}