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
6a5d7df7
Commit
6a5d7df7
authored
Dec 10, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move WINED3DRS_LINEPATTERN to the state table.
parent
81a1dce0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
23 deletions
+22
-23
device.c
dlls/wined3d/device.c
+1
-22
state.c
dlls/wined3d/state.c
+21
-1
No files found.
dlls/wined3d/device.c
View file @
6a5d7df7
...
...
@@ -3389,29 +3389,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_SPECULARMATERIALSOURCE
:
case
WINED3DRS_AMBIENTMATERIALSOURCE
:
case
WINED3DRS_EMISSIVEMATERIALSOURCE
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_LINEPATTERN
:
{
union
{
DWORD
d
;
WINED3DLINEPATTERN
lp
;
}
tmppattern
;
tmppattern
.
d
=
Value
;
TRACE
(
"Line pattern: repeat %d bits %x
\n
"
,
tmppattern
.
lp
.
wRepeatFactor
,
tmppattern
.
lp
.
wLinePattern
);
if
(
tmppattern
.
lp
.
wRepeatFactor
)
{
glLineStipple
(
tmppattern
.
lp
.
wRepeatFactor
,
tmppattern
.
lp
.
wLinePattern
);
checkGLcall
(
"glLineStipple(repeat, linepattern)"
);
glEnable
(
GL_LINE_STIPPLE
);
checkGLcall
(
"glEnable(GL_LINE_STIPPLE);"
);
}
else
{
glDisable
(
GL_LINE_STIPPLE
);
checkGLcall
(
"glDisable(GL_LINE_STIPPLE);"
);
}
}
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_ZBIAS
:
/* D3D8 only */
...
...
dlls/wined3d/state.c
View file @
6a5d7df7
...
...
@@ -849,6 +849,26 @@ static void state_colormat(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
static
void
state_linepattern
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
union
{
DWORD
d
;
WINED3DLINEPATTERN
lp
;
}
tmppattern
;
tmppattern
.
d
=
stateblock
->
renderState
[
WINED3DRS_LINEPATTERN
];
TRACE
(
"Line pattern: repeat %d bits %x
\n
"
,
tmppattern
.
lp
.
wRepeatFactor
,
tmppattern
.
lp
.
wLinePattern
);
if
(
tmppattern
.
lp
.
wRepeatFactor
)
{
glLineStipple
(
tmppattern
.
lp
.
wRepeatFactor
,
tmppattern
.
lp
.
wLinePattern
);
checkGLcall
(
"glLineStipple(repeat, linepattern)"
);
glEnable
(
GL_LINE_STIPPLE
);
checkGLcall
(
"glEnable(GL_LINE_STIPPLE);"
);
}
else
{
glDisable
(
GL_LINE_STIPPLE
);
checkGLcall
(
"glDisable(GL_LINE_STIPPLE);"
);
}
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -862,7 +882,7 @@ const struct StateEntry StateTable[] =
{
/* 7, WINED3DRS_ZENABLE */
STATE_RENDER
(
WINED3DRS_ZENABLE
),
state_zenable
},
{
/* 8, WINED3DRS_FILLMODE */
STATE_RENDER
(
WINED3DRS_FILLMODE
),
state_fillmode
},
{
/* 9, WINED3DRS_SHADEMODE */
STATE_RENDER
(
WINED3DRS_SHADEMODE
),
state_shademode
},
{
/* 10, WINED3DRS_LINEPATTERN */
STATE_RENDER
(
WINED3DRS_LINEPATTERN
),
state_
unknown
},
{
/* 10, WINED3DRS_LINEPATTERN */
STATE_RENDER
(
WINED3DRS_LINEPATTERN
),
state_
linepattern
},
{
/* 11, WINED3DRS_MONOENABLE */
STATE_RENDER
(
WINED3DRS_MONOENABLE
),
state_unknown
},
{
/* 12, WINED3DRS_ROP2 */
STATE_RENDER
(
WINED3DRS_ROP2
),
state_unknown
},
{
/* 13, WINED3DRS_PLANEMASK */
STATE_RENDER
(
WINED3DRS_PLANEMASK
),
state_unknown
},
...
...
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