Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
9356b6e4
Commit
9356b6e4
authored
Jan 15, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
D3D; fix warnings
parent
f5e991c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+3
-4
No files found.
modules/video_output/msw/direct3d.c
View file @
9356b6e4
...
@@ -484,7 +484,7 @@ static int Direct3DCreate(vout_display_t *vd)
...
@@ -484,7 +484,7 @@ static int Direct3DCreate(vout_display_t *vd)
LPDIRECT3D9
(
WINAPI
*
OurDirect3DCreate9
)(
UINT
SDKVersion
);
LPDIRECT3D9
(
WINAPI
*
OurDirect3DCreate9
)(
UINT
SDKVersion
);
OurDirect3DCreate9
=
OurDirect3DCreate9
=
(
void
*
)
GetProcAddress
(
sys
->
hd3d9_dll
,
TEXT
(
"Direct3DCreate9"
)
);
(
void
*
)
GetProcAddress
(
sys
->
hd3d9_dll
,
"Direct3DCreate9"
);
if
(
!
OurDirect3DCreate9
)
{
if
(
!
OurDirect3DCreate9
)
{
msg_Err
(
vd
,
"Cannot locate reference to Direct3DCreate9 ABI in DLL"
);
msg_Err
(
vd
,
"Cannot locate reference to Direct3DCreate9 ABI in DLL"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
@@ -609,9 +609,8 @@ static int Direct3DOpen(vout_display_t *vd, video_format_t *fmt)
...
@@ -609,9 +609,8 @@ static int Direct3DOpen(vout_display_t *vd, video_format_t *fmt)
// If it is present, override default settings
// If it is present, override default settings
for
(
UINT
Adapter
=
0
;
Adapter
<
IDirect3D9_GetAdapterCount
(
d3dobj
);
++
Adapter
)
{
for
(
UINT
Adapter
=
0
;
Adapter
<
IDirect3D9_GetAdapterCount
(
d3dobj
);
++
Adapter
)
{
D3DADAPTER_IDENTIFIER9
Identifier
;
D3DADAPTER_IDENTIFIER9
Identifier
;
HRESULT
Res
;
HRESULT
Res
=
IDirect3D9_GetAdapterIdentifier
(
d3dobj
,
Adapter
,
0
,
&
Identifier
);
Res
=
IDirect3D9_GetAdapterIdentifier
(
d3dobj
,
Adapter
,
0
,
&
Identifier
);
if
(
SUCCEEDED
(
Res
)
&&
strstr
(
Identifier
.
Description
,
"PerfHUD"
)
!=
0
)
{
if
(
strstr
(
Identifier
.
Description
,
"PerfHUD"
)
!=
0
)
{
AdapterToUse
=
Adapter
;
AdapterToUse
=
Adapter
;
DeviceType
=
D3DDEVTYPE_REF
;
DeviceType
=
D3DDEVTYPE_REF
;
break
;
break
;
...
...
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