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
196a0c98
Commit
196a0c98
authored
Aug 03, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/video_output/vout_subpictures.c: fixed OSD alignment
parent
145e92db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+6
-4
No files found.
src/video_output/vout_subpictures.c
View file @
196a0c98
...
...
@@ -402,21 +402,23 @@ void vout_RenderSubPictures( vout_thread_t *p_vout, picture_t *p_pic,
if
(
p_subpic
->
i_flags
&
OSD_ALIGN_BOTTOM
)
{
i_y_offset
+=
p_vout
->
output
.
i_height
-
p_region
->
fmt
.
i_height
;
i_y_offset
=
p_vout
->
output
.
i_height
-
p_region
->
fmt
.
i_height
-
p_subpic
->
i_y
;
}
else
if
(
!
(
p_subpic
->
i_flags
&
OSD_ALIGN_TOP
)
)
{
i_y_offset
+
=
p_vout
->
output
.
i_height
/
2
-
i_y_offset
=
p_vout
->
output
.
i_height
/
2
-
p_region
->
fmt
.
i_height
/
2
;
}
if
(
p_subpic
->
i_flags
&
OSD_ALIGN_RIGHT
)
{
i_x_offset
+=
p_vout
->
output
.
i_width
-
p_region
->
fmt
.
i_width
;
i_x_offset
=
p_vout
->
output
.
i_width
-
p_region
->
fmt
.
i_width
-
p_subpic
->
i_x
;
}
else
if
(
!
(
p_subpic
->
i_flags
&
OSD_ALIGN_LEFT
)
)
{
i_x_offset
+
=
p_vout
->
output
.
i_width
/
2
-
i_x_offset
=
p_vout
->
output
.
i_width
/
2
-
p_region
->
fmt
.
i_width
/
2
;
}
...
...
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