diff options
author | wm4 <wm4@nowhere> | 2013-09-30 22:25:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-05 22:46:55 +0200 |
commit | fd49edccf811de0d6c61f30d8b2b524f8df93b36 (patch) | |
tree | 274ec3cd18cb62abacf77f7249636bf8c2bf43ad /sub/sub.c | |
parent | 1be863afdbe9017aa227234e8525b209fb818224 (diff) | |
download | mpv-fd49edccf811de0d6c61f30d8b2b524f8df93b36.tar.bz2 mpv-fd49edccf811de0d6c61f30d8b2b524f8df93b36.tar.xz |
command: add properties for retrieving OSD dimensions
Diffstat (limited to 'sub/sub.c')
-rw-r--r-- | sub/sub.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -222,6 +222,9 @@ void osd_draw(struct osd_state *osd, struct mp_osd_res res, if (draw_flags & OSD_DRAW_SUB_FILTER) draw_flags |= OSD_DRAW_SUB_ONLY; + if (!(draw_flags & OSD_DRAW_SUB_ONLY)) + osd->last_vo_res = res; + for (int n = 0; n < MAX_OSD_PARTS; n++) { struct osd_object *obj = osd->objs[n]; |