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

Jean-Baptiste Kempf jb at videolan.org
Sun Mar 8 15:17:02 CET 2015


Le 08/03/2015 13:43, Hannes Domani a écrit :
>>>   } 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?
Not all renderers are freetype.

And the mac interface had a way of doing it, IIRC.

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device




More information about the vlc-devel mailing list