Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
dbc2edac
Commit
dbc2edac
authored
May 28, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify up/down subtitle hotkey.
parent
6650cb88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
modules/control/hotkeys.c
modules/control/hotkeys.c
+8
-14
No files found.
modules/control/hotkeys.c
View file @
dbc2edac
...
@@ -783,21 +783,15 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
...
@@ -783,21 +783,15 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
_
(
"Subtitle delay %i ms"
),
_
(
"Subtitle delay %i ms"
),
(
int
)(
i_delay
/
1000
)
);
(
int
)(
i_delay
/
1000
)
);
}
}
else
if
(
i_action
==
ACTIONID_SUBPOS_DOWN
)
else
if
(
i_action
==
ACTIONID_SUBPOS_DOWN
||
i_action
==
ACTIONID_SUBPOS_UP
)
{
{
int
i_pos
=
var_GetInteger
(
p_input
,
"sub-margin"
);
int
i_pos
;
--
i_pos
;
if
(
i_action
==
ACTIONID_SUBPOS_DOWN
)
var_SetInteger
(
p_input
,
"sub-margin"
,
i_pos
);
i_pos
=
var_DecInteger
(
p_input
,
"sub-margin"
);
ClearChannels
(
p_intf
,
p_vout
);
else
DisplayMessage
(
p_vout
,
SPU_DEFAULT_CHANNEL
,
i_pos
=
var_IncInteger
(
p_input
,
"sub-margin"
);
_
(
"Subtitle position %i px"
),
(
int
)(
i_pos
)
);
}
else
if
(
i_action
==
ACTIONID_SUBPOS_UP
)
{
int
i_pos
=
var_GetInteger
(
p_input
,
"sub-margin"
);
++
i_pos
;
var_SetInteger
(
p_input
,
"sub-margin"
,
i_pos
);
ClearChannels
(
p_intf
,
p_vout
);
ClearChannels
(
p_intf
,
p_vout
);
DisplayMessage
(
p_vout
,
SPU_DEFAULT_CHANNEL
,
DisplayMessage
(
p_vout
,
SPU_DEFAULT_CHANNEL
,
_
(
"Subtitle position %i px"
),
_
(
"Subtitle position %i px"
),
...
...
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