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
a6746b9e
Commit
a6746b9e
authored
May 07, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
May 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Indentation fix.
parent
8d09d5c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
31 deletions
+32
-31
executebuffer.c
dlls/ddraw/executebuffer.c
+32
-31
No files found.
dlls/ddraw/executebuffer.c
View file @
a6746b9e
...
...
@@ -241,48 +241,49 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
}
break
;
case
D3DOP_STATELIGHT
:
{
int
i
;
int
i
;
TRACE
(
"STATELIGHT (%d)
\n
"
,
count
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
LPD3DSTATE
ci
=
(
LPD3DSTATE
)
instr
;
TRACE
(
"(%08x,%08x)
\n
"
,
ci
->
u1
.
dlstLightStateType
,
ci
->
u2
.
dwArg
[
0
]);
TRACE
(
"(%08x,%08x)
\n
"
,
ci
->
u1
.
dlstLightStateType
,
ci
->
u2
.
dwArg
[
0
]);
if
(
!
ci
->
u1
.
dlstLightStateType
&&
(
ci
->
u1
.
dlstLightStateType
>
D3DLIGHTSTATE_COLORVERTEX
))
ERR
(
"Unexpected Light State Type
\n
"
);
else
if
(
ci
->
u1
.
dlstLightStateType
==
D3DLIGHTSTATE_MATERIAL
/* 1 */
)
{
DWORD
matHandle
=
ci
->
u2
.
dwArg
[
0
];
if
(
!
matHandle
)
{
FIXME
(
" D3DLIGHTSTATE_MATERIAL called with NULL material !!!
\n
"
);
}
else
if
(
matHandle
>=
lpDevice
->
numHandles
)
{
WARN
(
"Material handle %d is invalid
\n
"
,
matHandle
);
}
else
if
(
lpDevice
->
Handles
[
matHandle
-
1
].
type
!=
DDrawHandle_Material
)
{
WARN
(
"Handle %d is not a material handle
\n
"
,
matHandle
);
}
else
{
IDirect3DMaterialImpl
*
mat
=
(
IDirect3DMaterialImpl
*
)
lpDevice
->
Handles
[
matHandle
-
1
].
ptr
;
mat
->
activate
(
mat
);
}
}
else
if
(
ci
->
u1
.
dlstLightStateType
==
D3DLIGHTSTATE_COLORMODEL
/* 3 */
)
{
DWORD
matHandle
=
ci
->
u2
.
dwArg
[
0
];
if
(
!
matHandle
)
{
FIXME
(
" D3DLIGHTSTATE_MATERIAL called with NULL material !!!
\n
"
);
}
else
if
(
matHandle
>=
lpDevice
->
numHandles
)
{
WARN
(
"Material handle %d is invalid
\n
"
,
matHandle
);
}
else
if
(
lpDevice
->
Handles
[
matHandle
-
1
].
type
!=
DDrawHandle_Material
)
{
WARN
(
"Handle %d is not a material handle
\n
"
,
matHandle
);
}
else
{
IDirect3DMaterialImpl
*
mat
=
(
IDirect3DMaterialImpl
*
)
lpDevice
->
Handles
[
matHandle
-
1
].
ptr
;
mat
->
activate
(
mat
);
}
}
else
if
(
ci
->
u1
.
dlstLightStateType
==
D3DLIGHTSTATE_COLORMODEL
/* 3 */
)
{
switch
(
ci
->
u2
.
dwArg
[
0
])
{
case
D3DCOLOR_MONO
:
ERR
(
"DDCOLOR_MONO should not happen!
\n
"
);
break
;
ERR
(
"DDCOLOR_MONO should not happen!
\n
"
);
break
;
case
D3DCOLOR_RGB
:
/* We are already in this mode */
break
;
/* We are already in this mode */
break
;
default:
ERR
(
"Unknown color model!
\n
"
);
ERR
(
"Unknown color model!
\n
"
);
}
}
else
{
D3DRENDERSTATETYPE
rs
=
0
;
switch
(
ci
->
u1
.
dlstLightStateType
)
{
D3DRENDERSTATETYPE
rs
=
0
;
switch
(
ci
->
u1
.
dlstLightStateType
)
{
case
D3DLIGHTSTATE_AMBIENT
:
/* 2 */
case
D3DLIGHTSTATE_AMBIENT
:
/* 2 */
rs
=
D3DRENDERSTATE_AMBIENT
;
break
;
break
;
case
D3DLIGHTSTATE_FOGMODE
:
/* 4 */
rs
=
D3DRENDERSTATE_FOGVERTEXMODE
;
break
;
...
...
@@ -301,12 +302,12 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
default:
break
;
}
IDirect3DDevice7_SetRenderState
(
ICOM_INTERFACE
(
lpDevice
,
IDirect3DDevice7
),
rs
,
ci
->
u2
.
dwArg
[
0
]);
}
instr
+=
size
;
IDirect3DDevice7_SetRenderState
(
ICOM_INTERFACE
(
lpDevice
,
IDirect3DDevice7
),
rs
,
ci
->
u2
.
dwArg
[
0
]);
}
instr
+=
size
;
}
}
break
;
...
...
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