diff options
author | wm4 <wm4@nowhere> | 2012-10-04 17:16:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-16 07:26:31 +0200 |
commit | 34b3a9c5e97dfae87afab64915dec624439eafa6 (patch) | |
tree | c9b61a00cae21a9398ae885a0f54ce30d20f528f /sub | |
parent | 2db0d229efc1ba53e33bb3c110ec591246f0c83a (diff) | |
download | mpv-34b3a9c5e97dfae87afab64915dec624439eafa6.tar.bz2 mpv-34b3a9c5e97dfae87afab64915dec624439eafa6.tar.xz |
sub, VO: remove vo_osd_resized() function
VOs which could render the OSD in window size (as opposed to video size,
like vo_xv) and which could cache the OSD called this when the window
size changed. This was needed, because VOs used another OSD function to
check whether the OSD changed before passing the new window size to the
OSD code.
This was really just an artifact of OSD change detection, and now that
the affected VOs use the new OSD rendering API, it's done automatically.
Diffstat (limited to 'sub')
-rw-r--r-- | sub/sub.c | 8 | ||||
-rw-r--r-- | sub/sub.h | 1 |
2 files changed, 0 insertions, 9 deletions
@@ -301,14 +301,6 @@ void vo_osd_reset_changed(void) osd->objs[n]->force_redraw = false; } -void vo_osd_resized(void) -{ - // Counter the typical vo_osd_has_changed(osd) call in VO's draw_osd() - struct osd_state *osd = global_osd; - for (int n = 0; n < MAX_OSD_PARTS; n++) - osd->objs[n]->force_redraw = true; -} - bool sub_bitmaps_bb(struct sub_bitmaps *imgs, int *x1, int *y1, int *x2, int *y2) { @@ -169,7 +169,6 @@ void osd_update(struct osd_state *osd, int dxs, int dys); void vo_osd_changed(int new_value); void vo_osd_reset_changed(void); bool vo_osd_has_changed(struct osd_state *osd); -void vo_osd_resized(void); void osd_free(struct osd_state *osd); bool sub_bitmaps_bb(struct sub_bitmaps *imgs, int *x1, int *y1, |