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
c892ed49
Commit
c892ed49
authored
Aug 18, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Add a separate function for light initialization.
parent
c5a14085
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
ddraw.c
dlls/ddraw/ddraw.c
+1
-3
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-3
light.c
dlls/ddraw/light.c
+8
-1
No files found.
dlls/ddraw/ddraw.c
View file @
c892ed49
...
...
@@ -4375,9 +4375,7 @@ static HRESULT WINAPI d3d3_CreateLight(IDirect3D3 *iface, IDirect3DLight **light
return
DDERR_OUTOFMEMORY
;
}
object
->
lpVtbl
=
&
IDirect3DLight_Vtbl
;
object
->
ref
=
1
;
object
->
ddraw
=
ddraw_from_d3d3
(
iface
);
d3d_light_init
(
object
,
ddraw_from_d3d3
(
iface
));
TRACE
(
"Created light %p.
\n
"
,
object
);
*
light
=
(
IDirect3DLight
*
)
object
;
...
...
dlls/ddraw/ddraw_private.h
View file @
c892ed49
...
...
@@ -525,12 +525,10 @@ struct IDirect3DLightImpl
IDirect3DLightImpl
*
next
;
};
/* Vtable */
extern
const
IDirect3DLightVtbl
IDirect3DLight_Vtbl
DECLSPEC_HIDDEN
;
/* Helper functions */
void
light_activate
(
IDirect3DLightImpl
*
light
)
DECLSPEC_HIDDEN
;
void
light_deactivate
(
IDirect3DLightImpl
*
light
)
DECLSPEC_HIDDEN
;
void
d3d_light_init
(
IDirect3DLightImpl
*
light
,
IDirectDrawImpl
*
ddraw
)
DECLSPEC_HIDDEN
;
/******************************************************************************
* IDirect3DMaterial implementation structure - Wraps to D3D7
...
...
dlls/ddraw/light.c
View file @
c892ed49
...
...
@@ -287,7 +287,7 @@ IDirect3DLightImpl_GetLight(IDirect3DLight *iface,
return
DD_OK
;
}
const
IDirect3DLightVtbl
IDirect3DLight_V
tbl
=
static
const
struct
IDirect3DLightVtbl
d3d_light_v
tbl
=
{
/*** IUnknown Methods ***/
IDirect3DLightImpl_QueryInterface
,
...
...
@@ -298,3 +298,10 @@ const IDirect3DLightVtbl IDirect3DLight_Vtbl =
IDirect3DLightImpl_SetLight
,
IDirect3DLightImpl_GetLight
};
void
d3d_light_init
(
IDirect3DLightImpl
*
light
,
IDirectDrawImpl
*
ddraw
)
{
light
->
lpVtbl
=
&
d3d_light_vtbl
;
light
->
ref
=
1
;
light
->
ddraw
=
ddraw
;
}
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