summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-04 17:16:28 +0200
committerwm4 <wm4@nowhere>2012-10-16 07:26:31 +0200
commit34b3a9c5e97dfae87afab64915dec624439eafa6 (patch)
treec9b61a00cae21a9398ae885a0f54ce30d20f528f /sub
parent2db0d229efc1ba53e33bb3c110ec591246f0c83a (diff)
downloadmpv-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.c8
-rw-r--r--sub/sub.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/sub/sub.c b/sub/sub.c
index 8e80730b9a..fb1c76c91d 100644
--- a/sub/sub.c
+++ b/sub/sub.c
@@ -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)
{
diff --git a/sub/sub.h b/sub/sub.h
index 92ac19eb52..badc21d7a6 100644
--- a/sub/sub.h
+++ b/sub/sub.h
@@ -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,