summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-10-04 17:39:43 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-10-04 17:39:43 +0200
commite75ce6c86930ff74cc40b6d3cb2b65b3d48fc8b8 (patch)
treea0698661f9bf0f5e977d4443436877a67717844f /video/out
parent0541151b408e5aab5f20d437123b8a0a6aade3e5 (diff)
downloadmpv-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.m1
-rw-r--r--video/out/cocoa/window.m6
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];
}