Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7a8431ed
Commit
7a8431ed
authored
Dec 24, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 24, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stubs for IDirect3D(2)::CreateLight and CreateDevice to avoid crashes.
parent
276ef66c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
7 deletions
+35
-7
ddraw.c
graphics/ddraw.c
+35
-7
No files found.
graphics/ddraw.c
View file @
7a8431ed
...
...
@@ -1513,19 +1513,34 @@ static HRESULT WINAPI IDirect3D_Initialize(
return
DDERR_ALREADYINITIALIZED
;
}
static
HRESULT
WINAPI
IDirect3D_CreateLight
(
LPDIRECT3D
this
,
LPDIRECT3DLIGHT
*
light
,
IUnknown
*
lpunk
)
{
FIXME
(
ddraw
,
"(%p)->(%p,%p)
\n
"
,
this
,
light
,
lpunk
);
return
E_FAIL
;
}
typedef
LPVOID
LPDIRECT3DDEVICE
;
static
HRESULT
WINAPI
IDirect3D_CreateDevice
(
LPDIRECT3D
this
,
LPCLSID
rclsid
,
LPDIRECTDRAWSURFACE
surf
,
LPDIRECT3DDEVICE
*
d3dev
)
{
char
xclsid
[
50
];
WINE_StringFromCLSID
(
rclsid
,
xclsid
);
FIXME
(
ddraw
,
"(%p)->(%s,%p,%p), no Direct3D devices implemented yet!
\n
"
,
this
,
xclsid
,
surf
,
d3dev
);
return
E_FAIL
;
/* D3DERR_INVALID_DEVICE probably */
}
/*******************************************************************************
* IDirect3D
*/
static
struct
IDirect3D_VTable
d3dvt
=
{
(
void
*
)
IDirect3D_QueryInterface
,
(
void
*
)
IDirect3D_AddRef
,
(
void
*
)
IDirect3D_Release
,
IDirect3D_QueryInterface
,
IDirect3D_AddRef
,
IDirect3D_Release
,
IDirect3D_Initialize
,
(
void
*
)
5
,
IDirect3D_CreateLight
,
(
void
*
)
6
,
(
void
*
)
7
,
(
void
*
)
8
,
(
void
*
)
9
,
IDirect3D_CreateDevice
,
};
/*******************************************************************************
...
...
@@ -1559,16 +1574,29 @@ static HRESULT WINAPI IDirect3D2_EnumDevices(
return
0
;
}
static
HRESULT
WINAPI
IDirect3D2_CreateDevice
(
LPDIRECT3D2
this
,
REFCLSID
rclsid
,
LPDIRECTDRAWSURFACE
surf
,
LPDIRECT3DDEVICE2
*
d3dev
)
{
char
xclsid
[
50
];
WINE_StringFromCLSID
((
LPCLSID
)
rclsid
,
xclsid
);
FIXME
(
ddraw
,
"(%p)->(%s,%p,%p), no Direct3D devices implemented yet!
\n
"
,
this
,
xclsid
,
surf
,
d3dev
);
return
E_FAIL
;
/* D3DERR_INVALID_DEVICE probably */
}
static
HRESULT
WINAPI
IDirect3D2_CreateLight
(
LPDIRECT3D2
this
,
LPDIRECT3DLIGHT
*
light
,
IUnknown
*
lpunk
)
{
FIXME
(
ddraw
,
"(%p)->(%p,%p)
\n
"
,
this
,
light
,
lpunk
);
return
E_FAIL
;
}
static
struct
IDirect3D2_VTable
d3d2vt
=
{
(
void
*
)
1
,
(
void
*
)
2
,
IDirect3D2_Release
,
IDirect3D2_EnumDevices
,
(
void
*
)
5
,
IDirect3D2_CreateLight
,
(
void
*
)
6
,
(
void
*
)
7
,
(
void
*
)
8
,
(
void
*
)
9
,
IDirect3D2_CreateDevice
,
};
/*******************************************************************************
...
...
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