diff options
author | wm4 <wm4@nowhere> | 2014-01-11 18:44:27 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-11 18:58:06 +0100 |
commit | d956bbc065d570f425f402c83d69957584591dbd (patch) | |
tree | a515ffd2ada6a21d583e00f22079c0e33ff0dc76 /video/out/cocoa_common.m | |
parent | 3b8e457379586b3400ede0b3ca96baa15aa1ab06 (diff) | |
download | mpv-d956bbc065d570f425f402c83d69957584591dbd.tar.bz2 mpv-d956bbc065d570f425f402c83d69957584591dbd.tar.xz |
video/out: simplify monitor aspect handling
For some reason, this made all VO backends both set the screen
resolution in opts->screenwidth/height, and call
aspect_save_screenres(). Remove the latter. Move the code to calculate
the PAR-corrected window size from aspect.c to vo.c, and make it so that
the monitor PAR is recalculated when it makes sense.
Diffstat (limited to 'video/out/cocoa_common.m')
-rw-r--r-- | video/out/cocoa_common.m | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 2f50102257..8bec8ae80b 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -219,7 +219,6 @@ static void vo_cocoa_update_screen_info(struct vo *vo) NSRect r = [s->current_screen frame]; - aspect_save_screenres(vo, r.size.width, r.size.height); opts->screenwidth = r.size.width; opts->screenheight = r.size.height; } |