diff options
author | wm4 <wm4@nowhere> | 2013-05-14 23:14:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-14 23:14:23 +0200 |
commit | f562a41ca2abb7efe5fbb40954fb29f5db99f874 (patch) | |
tree | c9f19105377fcbb0ba7393e280b879ec139abf4b /sub/sub.c | |
parent | 3edb563b238b1c1d0fe1c58f89186655bbc439ad (diff) | |
download | mpv-f562a41ca2abb7efe5fbb40954fb29f5db99f874.tar.bz2 mpv-f562a41ca2abb7efe5fbb40954fb29f5db99f874.tar.xz |
command: simplify sub OSD update
We can just update all OSD elements in these cases. This way we can also
reuse it for commands which need to update the OSD for other reasons.
Diffstat (limited to 'sub/sub.c')
-rw-r--r-- | sub/sub.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -313,10 +313,8 @@ void vo_osd_changed(int new_value) osd->want_redraw = true; } -void osd_subs_changed(struct osd_state *osd) +void osd_changed_all(struct osd_state *osd) { - for (int n = 0; n < MAX_OSD_PARTS; n++) { - if (osd->objs[n]->is_sub) - vo_osd_changed(n); - } + for (int n = 0; n < MAX_OSD_PARTS; n++) + vo_osd_changed(n); } |