diff options
author | wm4 <wm4@nowhere> | 2016-05-03 22:29:12 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-03 22:29:12 +0200 |
commit | 485ae095f77a27bd3bca08b0e221dff14581e0d3 (patch) | |
tree | 01ac35ad2dc75bcc0bbbc9775d8dd8e32f7a523c /sub/osd.h | |
parent | 5be40f035b03b5dbc891f463ae90575243adf301 (diff) | |
download | mpv-485ae095f77a27bd3bca08b0e221dff14581e0d3.tar.bz2 mpv-485ae095f77a27bd3bca08b0e221dff14581e0d3.tar.xz |
osd: make osd_ass_0/1 defines
So we can concatenate them with strings at compile time.
Diffstat (limited to 'sub/osd.h')
-rw-r--r-- | sub/osd.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -107,6 +107,12 @@ enum mp_osd_font_codepoints { OSD_PB_1 = 0x13, }; + +// Never valid UTF-8, so we expect it's free for use. +// Specially interpreted by osd_libass.c, in order to allow/escape ASS tags. +#define OSD_ASS_0 "\xFD" +#define OSD_ASS_1 "\xFE" + struct osd_style_opts { char *font; float font_size; @@ -200,7 +206,5 @@ void osd_set_external(struct osd_state *osd, void *id, int res_x, int res_y, // doesn't need locking void osd_get_function_sym(char *buffer, size_t buffer_size, int osd_function); -extern const char *const osd_ass_0; -extern const char *const osd_ass_1; #endif /* MPLAYER_SUB_H */ |