mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user