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
99dcfdf0
Commit
99dcfdf0
authored
Dec 11, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Avoid LPD3DDEVICEDESC7.
parent
725ec032
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
d3d.c
dlls/ddraw/tests/d3d.c
+6
-3
d3d.h
include/d3d.h
+1
-1
d3dcaps.h
include/d3dcaps.h
+1
-1
No files found.
dlls/ddraw/tests/d3d.c
View file @
99dcfdf0
...
...
@@ -624,7 +624,8 @@ static HRESULT WINAPI enumDevicesCallback(GUID *Guid,LPSTR DeviceDescription,LPS
return
DDENUMRET_OK
;
}
static
HRESULT
WINAPI
enumDevicesCallbackTest7
(
LPSTR
DeviceDescription
,
LPSTR
DeviceName
,
LPD3DDEVICEDESC7
lpdd7
,
LPVOID
Context
)
static
HRESULT
WINAPI
enumDevicesCallbackTest7
(
char
*
DeviceDescription
,
char
*
DeviceName
,
D3DDEVICEDESC7
*
lpdd7
,
void
*
Context
)
{
D3D7ETest
*
d3d7et
=
Context
;
if
(
IsEqualGUID
(
&
lpdd7
->
deviceGUID
,
&
IID_IDirect3DRGBDevice
))
...
...
@@ -641,7 +642,8 @@ static HRESULT WINAPI enumDevicesCallbackTest7(LPSTR DeviceDescription, LPSTR De
return
DDENUMRET_OK
;
}
static
HRESULT
WINAPI
enumDevicesCancelTest7
(
LPSTR
DeviceDescription
,
LPSTR
DeviceName
,
LPD3DDEVICEDESC7
lpdd7
,
LPVOID
Context
)
static
HRESULT
WINAPI
enumDevicesCancelTest7
(
char
*
DeviceDescription
,
char
*
DeviceName
,
D3DDEVICEDESC7
*
lpdd7
,
void
*
Context
)
{
D3D7ECancelTest
*
d3d7et
=
Context
;
...
...
@@ -650,7 +652,8 @@ static HRESULT WINAPI enumDevicesCancelTest7(LPSTR DeviceDescription, LPSTR Devi
return
d3d7et
->
desired_ret
;
}
static
HRESULT
WINAPI
enumDevicesLifetimeTest7
(
LPSTR
DeviceDescription
,
LPSTR
DeviceName
,
LPD3DDEVICEDESC7
lpdd7
,
LPVOID
Context
)
static
HRESULT
WINAPI
enumDevicesLifetimeTest7
(
char
*
DeviceDescription
,
char
*
DeviceName
,
D3DDEVICEDESC7
*
lpdd7
,
void
*
Context
)
{
D3D7ELifetimeTest
*
ctx
=
Context
;
...
...
include/d3d.h
View file @
99dcfdf0
...
...
@@ -1295,7 +1295,7 @@ DECLARE_INTERFACE_(IDirect3DDevice7,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DDevice7 methods ***/
STDMETHOD
(
GetCaps
)(
THIS_
LPD3DDEVICEDESC7
lpD3DHELDevD
esc
)
PURE
;
STDMETHOD
(
GetCaps
)(
THIS_
D3DDEVICEDESC7
*
d
esc
)
PURE
;
STDMETHOD
(
EnumTextureFormats
)(
THIS_
LPD3DENUMPIXELFORMATSCALLBACK
lpD3DEnumPixelProc
,
LPVOID
lpArg
)
PURE
;
STDMETHOD
(
BeginScene
)(
THIS
)
PURE
;
STDMETHOD
(
EndScene
)(
THIS
)
PURE
;
...
...
include/d3dcaps.h
View file @
99dcfdf0
...
...
@@ -349,7 +349,7 @@ typedef struct _D3DDeviceDesc7 {
typedef
HRESULT
(
CALLBACK
*
LPD3DENUMDEVICESCALLBACK
)(
GUID
*
guid
,
char
*
description
,
char
*
name
,
D3DDEVICEDESC
*
hal_desc
,
D3DDEVICEDESC
*
hel_desc
,
void
*
ctx
);
typedef
HRESULT
(
CALLBACK
*
LPD3DENUMDEVICESCALLBACK7
)(
LPSTR
lpDeviceDescription
,
LPSTR
lpDeviceName
,
LPD3DDEVICEDESC7
,
LPVOID
);
typedef
HRESULT
(
CALLBACK
*
LPD3DENUMDEVICESCALLBACK7
)(
char
*
description
,
char
*
name
,
D3DDEVICEDESC7
*
desc
,
void
*
ctx
);
#define D3DFDS_COLORMODEL 0x00000001
#define D3DFDS_GUID 0x00000002
...
...
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