diff options
Diffstat (limited to 'sub')
-rw-r--r-- | sub/spudec.c | 10 | ||||
-rw-r--r-- | sub/spudec.h | 1 | ||||
-rw-r--r-- | sub/sub.c | 1 | ||||
-rw-r--r-- | sub/sub.h | 1 |
4 files changed, 2 insertions, 11 deletions
diff --git a/sub/spudec.c b/sub/spudec.c index d51f62c0fc..84b4113251 100644 --- a/sub/spudec.c +++ b/sub/spudec.c @@ -328,8 +328,8 @@ static void compute_palette(spudec_handle_t *this, packet_t *packet) start = 0x80; step = 0; } else { - start = this->font_start_level; - step = (0xF0-this->font_start_level)/(cused-1); + start = 72; + step = (0xF0-start)/(cused-1); } memset(used, 0, sizeof(used)); for (i=0; i<4; i++) { @@ -660,12 +660,6 @@ void spudec_get_indexed(void *this, struct mp_osd_res *dim, } } -void spudec_set_font_factor(void * this, double factor) -{ - spudec_handle_t *spu = this; - spu->font_start_level = (int)(0xF0-(0xE0*factor)); -} - static void spudec_parse_extradata(spudec_handle_t *this, uint8_t *extradata, int extradata_len) { diff --git a/sub/spudec.h b/sub/spudec.h index 84a05cbee0..fa395798ac 100644 --- a/sub/spudec.h +++ b/sub/spudec.h @@ -32,7 +32,6 @@ void *spudec_new(unsigned int *palette); void spudec_free(void *this); void spudec_reset(void *this); // called after seek int spudec_visible(void *this); // check if spu is visible -void spudec_set_font_factor(void * this, double factor); // sets the equivalent to ffactor int spudec_changed(void *this); void spudec_set_forced_subs_only(void * const this, const unsigned int flag); @@ -68,7 +68,6 @@ float text_font_scale_factor = 6; char *font_name = NULL; char *sub_font_name = NULL; -float font_factor = 0.75; float sub_delay = 0; float sub_fps = 0; @@ -185,7 +185,6 @@ extern float text_font_scale_factor; extern char *font_name; extern char *sub_font_name; -extern float font_factor; extern float sub_delay; extern float sub_fps; |