[vlc-devel] [WIP] hotkeys: new hotkeys for changing font size

Hannes Domani ssbssa at yahoo.de
Sun Mar 8 13:43:56 CET 2015


> > 
> >  } vlc_action_t;
> > 
> > diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
> > index 77843a3..ff8680d 100644
> > --- a/modules/control/hotkeys.c
> > +++ b/modules/control/hotkeys.c
> > @@ -1095,6 +1095,39 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
> >              if( p_vout && vout_OSDEpg( p_vout, input_GetItem( p_input ) ) )
> >                  DisplayPosition( p_intf, p_vout, p_input );
> >              break;
> > +
> > +        /* font size */
> > +        case ACTIONID_FONT_SIZE_UP:
> > +        case ACTIONID_FONT_SIZE_DOWN:
> > +            if( p_vout )
> > +            {
> > +                module_config_t *p_config = config_FindConfig(
> > +                        VLC_OBJECT(p_vout), "freetype-rel-fontsize" );
> 
> No, this is a bad idea. You should trigger that in the core.

I couldn't figure out what you mean with that.
Is there a function in core already to change font size?
Should I create one?

Maybe if there is something similar somewhere you can point me to it?


Regards
Domani Hannes



More information about the vlc-devel mailing list