Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
196a0c98
Commit
196a0c98
authored
Aug 03, 2004
by
gbazin
Browse files
* src/video_output/vout_subpictures.c: fixed OSD alignment
parent
145e92db
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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