1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

cocoa_common: change video size when changing screen DPI

This improves the situation when moving a window from screens with different
DPIs.
This commit is contained in:
Stefano Pigozzi 2013-07-10 13:32:38 +02:00
parent 175cd3cb57
commit b0932ecbb6

View File

@ -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;