diff options
author | wm4 <wm4@nowhere> | 2017-01-26 18:24:53 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-26 18:24:53 +0100 |
commit | abc6d130ace804bfa333955ff2cd402d927959c6 (patch) | |
tree | 1b7aba8831e99e438855f776bfa412e3b3e5d7bf /sub/osd_dummy.c | |
parent | 60452f640fd405133ebf6f7ba773b0e25071fcf1 (diff) | |
download | mpv-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_dummy.c')
-rw-r--r-- | sub/osd_dummy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sub/osd_dummy.c b/sub/osd_dummy.c index f7710ae2df..0e6b802cef 100644 --- a/sub/osd_dummy.c +++ b/sub/osd_dummy.c @@ -28,3 +28,9 @@ 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) +{ + *out_screen_h = 0; + *out_font_h = 0; +} |