mirror of https://github.com/mpv-player/mpv
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:
parent
175cd3cb57
commit
b0932ecbb6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue