summaryrefslogtreecommitdiffstats
path: root/sub/osd.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-26 18:24:53 +0100
committerwm4 <wm4@nowhere>2017-01-26 18:24:53 +0100
commitabc6d130ace804bfa333955ff2cd402d927959c6 (patch)
tree1b7aba8831e99e438855f776bfa412e3b3e5d7bf /sub/osd.h
parent60452f640fd405133ebf6f7ba773b0e25071fcf1 (diff)
downloadmpv-abc6d130ace804bfa333955ff2cd402d927959c6.tar.bz2
mpv-abc6d130ace804bfa333955ff2cd402d927959c6.tar.xz
command: shorten long playlists on OSD
A hacky, convoluted, half-working mess that attempts to cut off overlong playlists. It does so by relying on the ASS formatting rule that the font size is specified in the virtual PlayResY resolution. This means we can (normally) easily tell how many lines fit on the screen. On the other hand, this does not work if the text is wrapped. This as a kludge until a Betterâ„¢ solution is available.
Diffstat (limited to 'sub/osd.h')
-rw-r--r--sub/osd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sub/osd.h b/sub/osd.h
index f0ebc3b827..aef1c60b33 100644
--- a/sub/osd.h
+++ b/sub/osd.h
@@ -201,6 +201,7 @@ void osd_rescale_bitmaps(struct sub_bitmaps *imgs, int frame_w, int frame_h,
// defined in osd_libass.c and osd_dummy.c
void osd_set_external(struct osd_state *osd, void *id, int res_x, int res_y,
char *text);
+void osd_get_text_size(struct osd_state *osd, int *out_screen_h, int *out_font_h);
void osd_get_function_sym(char *buffer, size_t buffer_size, int osd_function);
#endif /* MPLAYER_SUB_H */