Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
704f8d78
Commit
704f8d78
authored
Aug 16, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Write-strings warnings fix.
parent
8c56ffdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
direct3d.c
dlls/ddraw/direct3d.c
+5
-2
No files found.
dlls/ddraw/direct3d.c
View file @
704f8d78
...
@@ -290,6 +290,7 @@ IDirect3DImpl_3_EnumDevices(IDirect3D3 *iface,
...
@@ -290,6 +290,7 @@ IDirect3DImpl_3_EnumDevices(IDirect3D3 *iface,
ICOM_THIS_FROM
(
IDirectDrawImpl
,
IDirect3D3
,
iface
);
ICOM_THIS_FROM
(
IDirectDrawImpl
,
IDirect3D3
,
iface
);
D3DDEVICEDESC
dref
,
d1
,
d2
;
D3DDEVICEDESC
dref
,
d1
,
d2
;
D3DDEVICEDESC7
newDesc
;
D3DDEVICEDESC7
newDesc
;
static
CHAR
wined3d_description
[]
=
"Wine D3DDevice using WineD3D and OpenGL"
;
HRESULT
hr
;
HRESULT
hr
;
/* Some games (Motoracer 2 demo) have the bad idea to modify the device name string.
/* Some games (Motoracer 2 demo) have the bad idea to modify the device name string.
...
@@ -317,10 +318,12 @@ IDirect3DImpl_3_EnumDevices(IDirect3D3 *iface,
...
@@ -317,10 +318,12 @@ IDirect3DImpl_3_EnumDevices(IDirect3D3 *iface,
if
(
This
->
d3dversion
!=
1
)
if
(
This
->
d3dversion
!=
1
)
{
{
static
CHAR
reference_description
[]
=
"Reference Direct3D ID"
;
TRACE
(
"(%p) Enumerating WineD3D D3DDevice interface
\n
"
,
This
);
TRACE
(
"(%p) Enumerating WineD3D D3DDevice interface
\n
"
,
This
);
d1
=
dref
;
d1
=
dref
;
d2
=
dref
;
d2
=
dref
;
hr
=
Callback
(
(
LPIID
)
&
IID_IDirect3DRefDevice
,
"Reference Direct3D ID"
,
device_name
,
&
d1
,
&
d2
,
Context
);
hr
=
Callback
(
(
LPIID
)
&
IID_IDirect3DRefDevice
,
reference_description
,
device_name
,
&
d1
,
&
d2
,
Context
);
if
(
hr
!=
D3DENUMRET_OK
)
if
(
hr
!=
D3DENUMRET_OK
)
{
{
TRACE
(
"Application cancelled the enumeration
\n
"
);
TRACE
(
"Application cancelled the enumeration
\n
"
);
...
@@ -331,7 +334,7 @@ IDirect3DImpl_3_EnumDevices(IDirect3D3 *iface,
...
@@ -331,7 +334,7 @@ IDirect3DImpl_3_EnumDevices(IDirect3D3 *iface,
TRACE
(
"(%p) Enumerating WineD3D D3DDevice interface
\n
"
,
This
);
TRACE
(
"(%p) Enumerating WineD3D D3DDevice interface
\n
"
,
This
);
d1
=
dref
;
d1
=
dref
;
d2
=
dref
;
d2
=
dref
;
hr
=
Callback
(
(
LPIID
)
&
IID_D3DDEVICE_WineD3D
,
"Wine D3DDevice using WineD3D and OpenGL"
,
device_name
,
&
d1
,
&
d2
,
Context
);
hr
=
Callback
(
(
LPIID
)
&
IID_D3DDEVICE_WineD3D
,
wined3d_description
,
device_name
,
&
d1
,
&
d2
,
Context
);
if
(
hr
!=
D3DENUMRET_OK
)
if
(
hr
!=
D3DENUMRET_OK
)
{
{
TRACE
(
"Application cancelled the enumeration
\n
"
);
TRACE
(
"Application cancelled the enumeration
\n
"
);
...
...
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