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
48255c99
Commit
48255c99
authored
Aug 07, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Aug 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
direct3d11: code cleaning
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
403f43f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/video_output/msw/direct3d11.c
modules/video_output/msw/direct3d11.c
+4
-4
No files found.
modules/video_output/msw/direct3d11.c
View file @
48255c99
...
...
@@ -1174,13 +1174,13 @@ static void UpdatePicQuadPosition(vout_display_t *vd)
HRESULT
hr
=
IDXGISwapChain_GetPrivateData
(
sys
->
dxgiswapChain
,
&
GUID_SWAPCHAIN_WIDTH
,
&
dataSize
,
&
i_width
);
if
(
FAILED
(
hr
))
{
msg_Err
(
vd
,
"Can't get swapchain width, size %d. (hr=0x%lX)"
,
hr
,
dataSize
);
return
hr
;
return
;
}
dataSize
=
sizeof
(
i_height
);
hr
=
IDXGISwapChain_GetPrivateData
(
sys
->
dxgiswapChain
,
&
GUID_SWAPCHAIN_HEIGHT
,
&
dataSize
,
&
i_height
);
if
(
FAILED
(
hr
))
{
msg_Err
(
vd
,
"Can't get swapchain height, size %d. (hr=0x%lX)"
,
hr
,
dataSize
);
return
hr
;
return
;
}
#endif
...
...
@@ -1744,8 +1744,8 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
picture_CopyPixels
(
quad_picture
,
r
->
p_picture
);
/* Map the subpicture to sys->rect_dest */
int
i_original_width
=
subpicture
->
i_original_picture_width
;
int
i_original_height
=
subpicture
->
i_original_picture_height
;
const
int
i_original_width
=
subpicture
->
i_original_picture_width
;
const
int
i_original_height
=
subpicture
->
i_original_picture_height
;
const
RECT
video
=
sys
->
rect_dest
;
const
float
scale_w
=
(
float
)(
video
.
right
-
video
.
left
)
/
i_original_width
;
...
...
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