diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-07-10 13:32:38 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-07-10 22:22:08 +0200 |
commit | b0932ecbb6b08de57a1429b71216eaa3cbe3882b (patch) | |
tree | 376de717a0c4b33f10dd303f22bcd3ac20d17662 /video/out | |
parent | 175cd3cb570525fd4ed8f6ec66e3a66a461cc896 (diff) | |
download | mpv-b0932ecbb6b08de57a1429b71216eaa3cbe3882b.tar.bz2 mpv-b0932ecbb6b08de57a1429b71216eaa3cbe3882b.tar.xz |
cocoa_common: change video size when changing screen DPI
This improves the situation when moving a window from screens with different
DPIs.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/cocoa_common.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index dc95e537a1..f8a4e44cd9 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -617,6 +617,14 @@ int vo_cocoa_cgl_color_size(struct vo *vo) s->did_resize = YES; } } + +- (void)windowDidChangeBackingProperties:(NSNotification *)notification { + if (self.videoOutput) { + struct vo_cocoa_state *s = self.videoOutput->cocoa; + s->did_resize = YES; + } +} + - (void)toggleMissionControlFullScreen:(BOOL)willBeFullscreen { struct vo_cocoa_state *s = self.videoOutput->cocoa; |