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 22:22:08 +02:00
parent 175cd3cb57
commit b0932ecbb6
+8
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;