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
f716306f
Commit
f716306f
authored
Mar 03, 2009
by
Christian Costa
Committed by
Alexandre Julliard
Mar 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Implement IDirect3DViewportImpl_NextLight.
parent
28fe3611
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
2 deletions
+45
-2
viewport.c
dlls/ddraw/viewport.c
+45
-2
No files found.
dlls/ddraw/viewport.c
View file @
f716306f
...
...
@@ -829,8 +829,51 @@ IDirect3DViewportImpl_NextLight(IDirect3DViewport3 *iface,
DWORD
dwFlags
)
{
IDirect3DViewportImpl
*
This
=
(
IDirect3DViewportImpl
*
)
iface
;
FIXME
(
"(%p)->(%p,%p,%08x): stub!
\n
"
,
This
,
lpDirect3DLight
,
lplpDirect3DLight
,
dwFlags
);
return
D3D_OK
;
IDirect3DLightImpl
*
cur_light
,
*
prev_light
=
NULL
;
TRACE
(
"(%p)->(%p,%p,%08x)
\n
"
,
This
,
lpDirect3DLight
,
lplpDirect3DLight
,
dwFlags
);
if
(
!
lplpDirect3DLight
)
return
DDERR_INVALIDPARAMS
;
*
lplpDirect3DLight
=
NULL
;
EnterCriticalSection
(
&
ddraw_cs
);
cur_light
=
This
->
lights
;
switch
(
dwFlags
)
{
case
D3DNEXT_NEXT
:
if
(
!
lpDirect3DLight
)
{
LeaveCriticalSection
(
&
ddraw_cs
);
return
DDERR_INVALIDPARAMS
;
}
while
(
cur_light
!=
NULL
)
{
if
(
cur_light
==
(
IDirect3DLightImpl
*
)
lpDirect3DLight
)
{
*
lplpDirect3DLight
=
(
IDirect3DLight
*
)
cur_light
->
next
;
break
;
}
cur_light
=
cur_light
->
next
;
}
break
;
case
D3DNEXT_HEAD
:
*
lplpDirect3DLight
=
(
IDirect3DLight
*
)
This
->
lights
;
break
;
case
D3DNEXT_TAIL
:
while
(
cur_light
!=
NULL
)
{
prev_light
=
cur_light
;
cur_light
=
cur_light
->
next
;
}
*
lplpDirect3DLight
=
(
IDirect3DLight
*
)
prev_light
;
break
;
default:
ERR
(
"Unknown flag %d
\n
"
,
dwFlags
);
break
;
}
LeaveCriticalSection
(
&
ddraw_cs
);
return
*
lplpDirect3DLight
?
D3D_OK
:
DDERR_INVALIDPARAMS
;
}
/*****************************************************************************
...
...
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