Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
2e76eb81
Commit
2e76eb81
authored
Aug 28, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add spu text scaling actions
parent
fcec9fa7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
include/vlc_keys.h
include/vlc_keys.h
+3
-0
modules/control/hotkeys.c
modules/control/hotkeys.c
+22
-0
src/config/keys.c
src/config/keys.c
+4
-1
No files found.
include/vlc_keys.h
View file @
2e76eb81
...
...
@@ -173,6 +173,9 @@ typedef enum vlc_action {
ACTIONID_AUDIO_TRACK
,
ACTIONID_SUBTITLE_TRACK
,
ACTIONID_SUBTITLE_TOGGLE
,
ACTIONID_SUBTITLE_TEXT_SCALE_NORMAL
,
ACTIONID_SUBTITLE_TEXT_SCALE_UP
,
ACTIONID_SUBTITLE_TEXT_SCALE_DOWN
,
ACTIONID_INTF_TOGGLE_FSC
,
ACTIONID_INTF_HIDE
,
ACTIONID_INTF_BOSS
,
...
...
modules/control/hotkeys.c
View file @
2e76eb81
...
...
@@ -1092,6 +1092,28 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
break
;
}
case
ACTIONID_SUBTITLE_TEXT_SCALE_DOWN
:
case
ACTIONID_SUBTITLE_TEXT_SCALE_UP
:
case
ACTIONID_SUBTITLE_TEXT_SCALE_NORMAL
:
{
if
(
p_vout
)
{
int
i_scale
;
if
(
i_action
==
ACTIONID_SUBTITLE_TEXT_SCALE_NORMAL
)
{
i_scale
=
100
;
}
else
{
i_scale
=
var_GetInteger
(
p_vout
,
"sub-text-scale"
);
i_scale
+=
((
i_action
==
ACTIONID_SUBTITLE_TEXT_SCALE_UP
)
?
1
:
-
1
)
*
25
;
i_scale
=
VLC_CLIP
(
i_scale
,
10
,
500
);
}
var_SetInteger
(
p_vout
,
"sub-text-scale"
,
i_scale
);
DisplayMessage
(
p_vout
,
_
(
"Subtitle text scale %d%%"
),
i_scale
);
}
}
/* Input + video output */
case
ACTIONID_POSITION
:
if
(
p_vout
&&
vout_OSDEpg
(
p_vout
,
input_GetItem
(
p_input
)
)
)
...
...
src/config/keys.c
View file @
2e76eb81
...
...
@@ -260,7 +260,7 @@ found:
/*** VLC key map ***/
#define MAXACTION 2
0
#define MAXACTION 2
6
struct
action
{
char
name
[
MAXACTION
];
...
...
@@ -353,6 +353,9 @@ static const struct action actions[] =
{
"subsync-markaudio"
,
ACTIONID_SUBSYNC_MARKAUDIO
,
},
{
"subsync-marksub"
,
ACTIONID_SUBSYNC_MARKSUB
,
},
{
"subsync-reset"
,
ACTIONID_SUBSYNC_RESET
,
},
{
"subtitle-text-scale-down"
,
ACTIONID_SUBTITLE_TEXT_SCALE_DOWN
,
},
{
"subtitle-text-scale-normal"
,
ACTIONID_SUBTITLE_TEXT_SCALE_NORMAL
,
},
{
"subtitle-text-scale-up"
,
ACTIONID_SUBTITLE_TEXT_SCALE_UP
,
},
{
"subtitle-toggle"
,
ACTIONID_SUBTITLE_TOGGLE
,
},
{
"subtitle-track"
,
ACTIONID_SUBTITLE_TRACK
,
},
{
"title-next"
,
ACTIONID_TITLE_NEXT
,
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment