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
4188af79
Commit
4188af79
authored
Mar 05, 2008
by
Rico Schüller
Committed by
Alexandre Julliard
Mar 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Fix diffuse and specular color types.
parent
c8d8ddab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
device.c
dlls/ddraw/device.c
+4
-4
No files found.
dlls/ddraw/device.c
View file @
4188af79
...
...
@@ -3708,14 +3708,14 @@ IDirect3DDeviceImpl_7_DrawPrimitiveStrided(IDirect3DDevice7 *iface,
{
WineD3DStrided
.
u
.
s
.
diffuse
.
lpData
=
D3DDrawPrimStrideData
->
diffuse
.
lpvData
;
WineD3DStrided
.
u
.
s
.
diffuse
.
dwStride
=
D3DDrawPrimStrideData
->
diffuse
.
dwStride
;
WineD3DStrided
.
u
.
s
.
diffuse
.
dwType
=
WINED3DDECLTYPE_
SHORT4
;
WineD3DStrided
.
u
.
s
.
diffuse
.
dwType
=
WINED3DDECLTYPE_
D3DCOLOR
;
}
if
(
VertexType
&
D3DFVF_SPECULAR
)
{
WineD3DStrided
.
u
.
s
.
specular
.
lpData
=
D3DDrawPrimStrideData
->
specular
.
lpvData
;
WineD3DStrided
.
u
.
s
.
specular
.
dwStride
=
D3DDrawPrimStrideData
->
specular
.
dwStride
;
WineD3DStrided
.
u
.
s
.
specular
.
dwType
=
WINED3DDECLTYPE_
SHORT4
;
WineD3DStrided
.
u
.
s
.
specular
.
dwType
=
WINED3DDECLTYPE_
D3DCOLOR
;
}
for
(
i
=
0
;
i
<
GET_TEXCOUNT_FROM_FVF
(
VertexType
);
i
++
)
...
...
@@ -3857,14 +3857,14 @@ IDirect3DDeviceImpl_7_DrawIndexedPrimitiveStrided(IDirect3DDevice7 *iface,
{
WineD3DStrided
.
u
.
s
.
diffuse
.
lpData
=
D3DDrawPrimStrideData
->
diffuse
.
lpvData
;
WineD3DStrided
.
u
.
s
.
diffuse
.
dwStride
=
D3DDrawPrimStrideData
->
diffuse
.
dwStride
;
WineD3DStrided
.
u
.
s
.
diffuse
.
dwType
=
WINED3DDECLTYPE_
SHORT4
;
WineD3DStrided
.
u
.
s
.
diffuse
.
dwType
=
WINED3DDECLTYPE_
D3DCOLOR
;
}
if
(
VertexType
&
D3DFVF_SPECULAR
)
{
WineD3DStrided
.
u
.
s
.
specular
.
lpData
=
D3DDrawPrimStrideData
->
specular
.
lpvData
;
WineD3DStrided
.
u
.
s
.
specular
.
dwStride
=
D3DDrawPrimStrideData
->
specular
.
dwStride
;
WineD3DStrided
.
u
.
s
.
specular
.
dwType
=
WINED3DDECLTYPE_
SHORT4
;
WineD3DStrided
.
u
.
s
.
specular
.
dwType
=
WINED3DDECLTYPE_
D3DCOLOR
;
}
for
(
i
=
0
;
i
<
GET_TEXCOUNT_FROM_FVF
(
VertexType
);
i
++
)
...
...
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