diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-10-04 17:39:43 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-10-04 17:39:43 +0200 |
commit | e75ce6c86930ff74cc40b6d3cb2b65b3d48fc8b8 (patch) | |
tree | a0698661f9bf0f5e977d4443436877a67717844f /video/out | |
parent | 0541151b408e5aab5f20d437123b8a0a6aade3e5 (diff) | |
download | mpv-e75ce6c86930ff74cc40b6d3cb2b65b3d48fc8b8.tar.bz2 mpv-e75ce6c86930ff74cc40b6d3cb2b65b3d48fc8b8.tar.xz |
cocoa: only call resize for view changing frame
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/cocoa/view.m | 1 | ||||
-rw-r--r-- | video/out/cocoa/window.m | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/video/out/cocoa/view.m b/video/out/cocoa/view.m index 91454c27d5..7be52b53c9 100644 --- a/video/out/cocoa/view.m +++ b/video/out/cocoa/view.m @@ -147,6 +147,7 @@ { [super setFrameSize:size]; [self signalMousePosition]; + [self.adapter setNeedsResize]; } - (NSPoint)convertPointToPixels:(NSPoint)point diff --git a/video/out/cocoa/window.m b/video/out/cocoa/window.m index 3dc937565b..ebd3eaf957 100644 --- a/video/out/cocoa/window.m +++ b/video/out/cocoa/window.m @@ -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]; } |