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
fbcd354f
Commit
fbcd354f
authored
Aug 28, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
direct3d11: fix the subpictures position on Winstore apps
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
e0457843
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
modules/video_output/msw/direct3d11.c
modules/video_output/msw/direct3d11.c
+9
-4
No files found.
modules/video_output/msw/direct3d11.c
View file @
fbcd354f
...
@@ -142,8 +142,8 @@ typedef struct d3d_vertex_t {
...
@@ -142,8 +142,8 @@ typedef struct d3d_vertex_t {
FLOAT
opacity
;
FLOAT
opacity
;
}
d3d_vertex_t
;
}
d3d_vertex_t
;
#define RECTWidth(r) (int)(
r.right - r
.left)
#define RECTWidth(r) (int)(
(r).right - (r)
.left)
#define RECTHeight(r) (int)(
r.bottom - r
.top)
#define RECTHeight(r) (int)(
(r).bottom - (r)
.top)
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
object
);
static
void
Close
(
vlc_object_t
*
object
);
...
@@ -1758,9 +1758,14 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
...
@@ -1758,9 +1758,14 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
dst
.
bottom
=
dst
.
top
+
scale_h
*
r
->
fmt
.
i_visible_height
;
dst
.
bottom
=
dst
.
top
+
scale_h
*
r
->
fmt
.
i_visible_height
;
float
opacity
=
(
float
)
r
->
i_alpha
/
255
.
0
f
;
float
opacity
=
(
float
)
r
->
i_alpha
/
255
.
0
f
;
const
RECT
*
p_viewport
;
#if VLC_WINSTORE_APP
p_viewport
=
&
sys
->
rect_display
;
#else
p_viewport
=
&
video
;
#endif
UpdateQuadPosition
(
vd
,
(
d3d_quad_t
*
)
quad_picture
->
p_sys
,
&
dst
,
UpdateQuadPosition
(
vd
,
(
d3d_quad_t
*
)
quad_picture
->
p_sys
,
&
dst
,
i_original_width
,
i_original_height
,
opacity
);
RECTWidth
(
*
p_viewport
),
RECTHeight
(
*
p_viewport
),
opacity
);
}
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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