Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-iOS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
310
Issues
310
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-iOS
Commits
15f3e868
Commit
15f3e868
authored
May 19, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Center the audio and subtitles tracks on the screen
This is not perfect but better than misaligned
parent
eb57aa24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AspenProject/VLCMovieViewController.m
AspenProject/VLCMovieViewController.m
+2
-2
No files found.
AspenProject/VLCMovieViewController.m
View file @
15f3e868
...
...
@@ -389,7 +389,7 @@
[
_audiotrackActionSheet
addButtonWithTitle
:
audioTracks
[
i
]];
[
_audiotrackActionSheet
addButtonWithTitle
:
NSLocalizedString
(
@"BUTTON_CANCEL"
,
@"cancel button"
)];
[
_audiotrackActionSheet
setCancelButtonIndex
:[
_audiotrackActionSheet
numberOfButtons
]
-
1
];
[
_audiotrackActionSheet
show
FromRect
:[
self
.
audioSwitcherButton
frame
]
inView
:
self
.
audioSwitcherButton
animated
:
YES
];
[
_audiotrackActionSheet
show
InView
:
self
.
audioSwitcherButton
];
}
-
(
IBAction
)
switchSubtitleTrack
:(
id
)
sender
...
...
@@ -403,7 +403,7 @@
[
_subtitleActionSheet
addButtonWithTitle
:
spuTracks
[
i
]];
[
_subtitleActionSheet
addButtonWithTitle
:
NSLocalizedString
(
@"BUTTON_CANCEL"
,
@"cancel button"
)];
[
_subtitleActionSheet
setCancelButtonIndex
:[
_subtitleActionSheet
numberOfButtons
]
-
1
];
[
_subtitleActionSheet
show
FromRect
:[
self
.
subtitleSwitcherButton
frame
]
inView
:
self
.
subtitleSwitcherButton
animated
:
YES
];
[
_subtitleActionSheet
show
InView
:
self
.
subtitleSwitcherButton
];
}
-
(
void
)
actionSheet
:(
UIActionSheet
*
)
actionSheet
clickedButtonAtIndex
:(
NSInteger
)
buttonIndex
{
...
...
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